使用salesforce中的VisualForce页面创建仪表板

时间:2015-12-11 09:41:13

标签: salesforce visualforce apex

我想使用visual force page在Sales Force中创建自定义仪表板。我想从海关对象获取数据。为此我写了一个顶点控制器

<apex:page controller="Sample">
    <apex:chart height="400" width="700" data="{!pweb}">
          <apex:axis type="Numeric" position="left" fields="pweb2" 
            title="users Count" grid="true"/>
          <apex:axis type="Category" position="bottom" fields="pweb1" 
            title="Week Days">
        </apex:axis>
        <apex:lineSeries axis="left" fill="true" xField="pweb1" yField="pweb2"
          markerType="cross" markerSize="4" markerFill="#FF0000"/>
   </apex:chart>
</apex:page>

使用visualforce页面创建图表:

<apex:page controller="Sample">
    <apex:chart height="400" width="700" data="{!pweb}">
          <apex:axis type="Numeric" position="left" fields="pweb2" 
            title="users Count" grid="true"/>
          <apex:axis type="Category" position="bottom" fields="pweb1" 
            title="Week Days">
        </apex:axis>
        <apex:lineSeries axis="left" fill="true" xField="pweb1" yField="pweb2"
          markerType="cross" markerSize="4" markerFill="#FF0000"/>
   </apex:chart>
</apex:page>

它没有显示任何错误,但保存后,当我点击预览按钮时,它没有显示任何内容。有人可以帮我解决一下吗?

0 个答案:

没有答案