-
Notifications
You must be signed in to change notification settings - Fork 83
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
Add samples for formatters and tooltip templates #33
Comments
Have just started using your charts today - looks good. |
The formaters are javascript functions, please see the samples in the Apex documentation, https://apexcharts.com/docs/formatting-axes-labels/ The Line samples Datetime do contains examples of Y value tooltip. The data type for Y axis is decimal, but you should be able convert a numeric type to it. Please let me know if you have a use case where this is not working. For zeros decimal places you can use the option DecimalsInFloat, this is also in the Datetime sample
|
Thanks for your comment and pointers. Numeric values should also follow the same formatting rules (for example as defined by the N formatter). I'd also expect numbers to be similarly formatted within the tooltip. My comment on the Y axis type was simply to question why it was fixed as decimal - what happens if you want to invert the X and Y axes? Say, as per your first Line chart example, so that Y axis is now the Country and X is the value. |
I agree on the formatters, only having javascript functions is really limiting. I'll raise a separate issue for tracking this. For the Y decimal value, should not be a problem, if you want to invert the Axis you set up the chart as normal and then flip the axis, see Horizontal demo here https://apexcharts.github.io/Blazor-ApexCharts/bar-charts |
thanks - I missed that! |
Clean up |
No description provided.
The text was updated successfully, but these errors were encountered: