amcharts3 icon indicating copy to clipboard operation
amcharts3 copied to clipboard

includeInMinMax=false for compared StockGraphs

Open thatsmeta opened this issue 7 years ago • 2 comments

Hi!

Is it possible to set includeInMinMax=false for compared StockGraphs? I tried, but it does not seem to work. I'm only interested in compared graphs when they are "near" my main graph. I would like for those values of the compared graphs which are much higher or much lower than my main graph not to be displayed. They should not change the scaling of the value axis.

thatsmeta avatar Nov 29 '18 13:11 thatsmeta

Hi!

That works only if your Stock Chart has different graphs. The default compare feature of Stock Charts only has a single graph (that has the ability to display multiple datasets). Unfortunately includeInMinMax doesn't work in this scenarios.

You can however, build a Stock Chart that contains multiple graphs, but you would have to give up most functionality of the built-in compare panel.

Here's a Codepen demo of such a Stock Graph (where the second graph has includeInMinMax set to false): https://codepen.io/team/amcharts/pen/f9e760e332f162fb785f18621455a942?editors=0110.

Hope this helps!

RobbiesCode avatar Nov 30 '18 14:11 RobbiesCode

Thank you @RobbiesCode. I am not using the built-in compare panel at the moment, but I have the same functionality in an external component, as in this example: https://www.amcharts.com/docs/v3/tutorials/external-data-set-selector-comparison-tool-stock-chart/. Your Codepen looks like it is just the thing I need, however i cannot seem to make it work when using multiple datasets (one dataset per graph). Can you help?

thatsmeta avatar Dec 07 '18 14:12 thatsmeta