Skip to content

Wrong Data Shown #10586

Answered by stockiNail
ChiragMittal asked this question in Q&A
Aug 10, 2022 · 2 comments · 12 replies
Discussion options

You must be logged in to vote

@ChiragMittal As I have written before, I think, to reach what you need, you must set a ticks.callback in order to set a almost correct layer instead to leave the axis to show what it has calculated because the dataset is not related to layer axis.

Pay attention that is working because I set the count of ticks, in order to be sure that the space among ticks are always the same.
There is also another point to underline: the callback is using some "_" properties.
It's not perfect and must be tested more in deep.

Using your sample, I changed the layer axis config as following:

      layer: {
        display: true,
        position: "top",
        grid: {
          drawOnChartArea: false

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
11 replies
@ChiragMittal
Comment options

@stockiNail
Comment options

@stockiNail
Comment options

@ChiragMittal
Comment options

@stockiNail
Comment options

Comment options

You must be logged in to vote
1 reply
@ChiragMittal
Comment options

Answer selected by ChiragMittal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants