Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for the fallback to yaxis custom tickFormatter() #10

Open
alekperos opened this issue Sep 27, 2012 · 0 comments
Open

Support for the fallback to yaxis custom tickFormatter() #10

alekperos opened this issue Sep 27, 2012 · 0 comments

Comments

@alekperos
Copy link

Original version doesnt support the fallback to the yaxis custom tickFormatter(), for example, if value ticks across the Y axis are defined to be percentages, lets say, 50% instead of 50 as a value using tickFormatter, the valueLabels should have default support for that.

...if (series.valueLabelFunc)  val = series.valueLabelFunc({ series: series, seriesIndex: ii, index: i });
val = ""+val;

// enable custom formatting on valueLabels
if (plot.getOptions().yaxis.tickFormatter) val = series.yaxis.tickFormatter(Number(val), series);

if (val!=last_val || i==series.data.length-1) {...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant