FVANCOP / ChartNew.js

MIT License
420 stars 143 forks source link

Figure/symbol for ingraph data with condition #480

Closed luna2761 closed 7 years ago

luna2761 commented 7 years ago

Hello, Francois,

I have a question connected with issue#464. Is it possible to draw some figure (small square/circle/..) for inGraphData for overlapped bars with some condition?

Details: It is simple to add some symbol to 'text:' in currentData.shapesInChart. It will follow all the array.

However, I can't change, for example, color of this symbol according to its data value (currentData.shapesInChart[prevPos].y2_original_value). For example, if data value[i] = 1, I add one symbol with some color, if data value = 0, I add another symbol with another color.

Please, advice how it can be achieved. I will attach an image if you need.

Thank you!

luna2761 commented 7 years ago

Just made it simpler - created one more shapesInChart text shape =).