Hi
Is there any way to display the sum of all the values in a Stacked Column Chart above the column? I'm aware of the showCumulativeValues attribute, but I want the individual values to be displayed non-cummulatively.
Thanks.
Hi,
Thanks for your reply. Sorry for my late reply. What I'm looking for is values on each individual part of the stack and also a total at the top.
|
SfCartesianChart(
annotations: getAnnotation(),
// Other required properties
)
List<CartesianChartAnnotation> getAnnotation() {
//............
return annotations;
} |
Hi,
Thanks for the example. I have a couple of problems when I apply it to my chart. The x-axis on my chart is DateTime. Only alternate days are printed on the x-axis. I'm not sure if this intended behavior or a problem with my code. Either way, for the columns where there is no date displayed on the x-axis, the cumulative value is displayed at the origin (top left corner) of the chart, not above the columns. Secondly, the cumulative values which are displayed, are a little too low and overwrite the top of the chart.