Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Stacked column chart
Re: Stacked column chart [message #48587 is a reply to message #48577] Wed, 02 August 2017 15:11 Go to previous messageGo to previous message
Giorgio is currently offline  Giorgio
Messages: 218
Registered: August 2015
Experienced Member
Hi Koldo,
I have in mimd something as the following.

This structure contains, the x position where to place each stacked columns and a list of the values to be stacked; for instance if values contains 3; 2.5; 1.2; 0; 3.1 the column will have the first segment that goes (in the y axis) from 0 to 3, the second from 3 to 5.5, the third from 5.5 to 6.7 etc.

struct StackedValues {
double x_position;
Vector<double> values;
};

Then a method that places the stacked column in the control.

scattercontrol.AddStacked(StackedValues stcv)

The above method has to be invoked for each of the stacked columns. The case in which values are in different number (e.g. first time the use calls the method passing a vector of 5 elements, second time the vector has 6 elements) should be managed in some way e.g. if values are missing it assumes they are zeros. Nice to have are a method to control the color of the segment and a method to add a legend and give a name to the segments (e.g. the legend will show the color of each segment and close to it a description of what the segment represents http:// 6.anychart.com/products/anychart/docs/users-guide/img/Sample s/sample-stacked-column-chart.png).
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: StreamRasterEncoder?
Next Topic: again... use if deleted function :?
Goto Forum:
  


Current Time: Mon Jul 07 08:53:02 CEST 2025

Total time taken to generate the page: 0.04710 seconds