Home Forums Chart Support Line Chart Connector Colors Reply To: Line Chart Connector Colors

#37074

Thank you very much for the tip! Once again I am convinced that your team is the best!
After reviewing your example, I want to add some charting logic to suit my needs.
It is required to build a graph according to the conditions:
1. There is input data (random data) – numbers from 0 to 9 – (nominal values)
2. These numbers differ in color (depicted as a segment on a linear dynamic chart, red – down, blue – up)
3. The logic of building and rendering the color of the graph line (When even and odd blue numbers go in a row, then, for example, 0 – 2 – 3 – 4 -…- 9 (increase) – then the segment is blue on the graph. When even numbers go and odd red numbers go in a row, then the segment on the line graph is red.If there are red and blue, then we compare the denomination of the numbers, for example, if 5 (odd blue) – 6 (even blue) – 1 (odd blue) – 6 (even blue) – 2 (even red), then in the above figure it is represented by colored segments “color pressure at face value” and according to the characteristics of the digit (even or odd).In other words, a sinusoidal curve is displayed on the Cartesian plane, which is built according to algorithm (even numbers in the blue zone (above zero) will be higher than odd ones, and even ones in the red zone will be lower than odd ones), which is shown in the figure.
I would be grateful if you could help me write a function for this logic.