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

在salesforce中使用VisualForce页面创建仪表板,salesforce,visualforce,apex,Salesforce,Visualforce,Apex,我想使用visual Force页面在Sales Force中创建自定义仪表板。我想从海关物品中获取数据。为此,我编写了一个apex控制器 <apex:page controller="Sample"> <apex:chart height="400" width="700" data="{!pweb}"> <apex:axis type="Numeric" position="left" fields="pweb2"

我想使用visual Force页面在Sales Force中创建自定义仪表板。我想从海关物品中获取数据。为此,我编写了一个apex控制器

<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>


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

看来,你忘了在问题中添加控制器代码,请更新它。另外,当你点击按钮时,你能检查一下浏览器控制台中是否有JS错误吗?看来,你忘了在问题中添加控制器代码,请更新它。另外,当您单击按钮时,是否可以检查浏览器控制台中是否存在JS错误?