Skip to main content
Hello,

 

I developped a visualforce chart and sometimes, datas are garbled.

 

Per example, a 10 is displayed as a 11 :

 

Garbled data from visualforce chart

 

I tried to change the data type to barSeries and it doesn't work.

 

I tried to change the chart's height from 600px to 950px and it doesn't work and I modified chart's options but it doesn't work too.

 

This is my code :

 

<apex:chart height="550px" width="100%" data="{!datas}" rendered="{!chartVisible}" resizable="true">

 

     <apex:legend position="right"/>

 

        <apex:axis type="Numeric" position="left" fields="data1" minimum="0" maximum="{!maxNbParticipants}" title="Number of participants" grid="true"/>

 

        <apex:axis type="Category" position="bottom" fields="name" title="">

 

            <apex:chartLabel rotate="315"/>

 

        </apex:axis>

 

        <apex:lineSeries title="{!mapNames[0]}" fill="true" axis="left" xField="name" yField="data1" markerType="circle" markerSize="4" markerFill="#.A44065" strokeColor="#.A44065" />

 

        <apex:lineSeries title="{!mapNames[1]}" fill="false" axis="left" xField="name" yField="data2" markerType="circle" markerSize="4" markerFill="#.4051A4" strokeColor="#.4051A4" />

 

        <apex:lineSeries title="{!mapNames[2]}" fill="false" axis="left" xField="name" yField="data3" markerType="circle" markerSize="4" markerFill="#.5EA440" strokeColor="#.5EA440" />

 

    </apex:chart>

 

Why data are garbked please?

 

Thanks for your answers.

 

Best regards
2 respostas
0/9000