function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
vinothvinoth 

Dynamic Stacked chart

Hi,

I want to display Stacked chart in salefsorce. This is the scenario.

 

Eg:

x-axis ----month(Jan,Feb.,,,,,).

y-axis----- record count

chart content------ User.

 

 

i want to display a how many records got created by each user for each month . user count is dynamic.. here its 3. based on query user count will change. how to implement this?

 

 

 

 

<apex:chart data="{!data}" height="400" width="500">
    <apex:legend position="left"/>
    <apex:axis type="Numeric" position="left" title="Closed Won" grid="true"
        fields="data1,data2,data3" dashSize="2"> -----can we make this field data dynamic like data4,date5
        <apex:chartLabel/>
    </apex:axis>
    <apex:axis type="Category" position="bottom" fields="name" title="Stacked Bars">
        <apex:chartLabel rotate="315"/>
    </apex:axis>
    <apex:barSeries orientation="vertical" axis="left" stacked="true"
        xField="name" yField="data1,data2,data3" title="MacDonald,Promas,Worle"/>-----can we make this field data dynamic like data4,date5
</apex:chart>