Skip to content

Alignment of line chart data points #10521

Answered by stockiNail
CFDev22 asked this question in Q&A
Discussion options

You must be logged in to vote

On one particular chart, the customer wants to highlight a range of weeks as Peak Season. We had originally tried to use a blank image that is the same size as the chart, but had a light blue section for those weeks. It worked, until the y axis max value went from 5,000 to 10,000 and the grid shifted.

Next idea (the one that stuck) was to add Peak Season to the datasets, calculate what the max y axis value should be and set that, then set all the values to null, null, null, 100000, 100000, 100000, null, null, etc. to get the light blue for that range. Works like a charm! If the grid shifts, the blue range shifts with it. And the max data point will never get to 100000.

Regarding the abo…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by CFDev22
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