How to bind the xAxis with a variable when drawing a multiple series line chart?

The project URL is https://forio.com/app/jalali/cybersecurity/.

I want to use the sliders to change the values of variables F1, F2 and F3. And I want to set the xAxis being related to variable ‘Time’. So that the chart can move forward 12 months when I click on ‘Advance’ button each time.

The F1, F2, F3 have already been subscribed so that it can move forward. But when I click on ‘Advance’, I cannot control how much to move forward.

Does anyone know how to deal with the problem? Thank you very much!

Best Regards,
Zhen

Hi Zhen,

On the advance button you have data-f-on-click="step(1)" the “1” there refers to the number of steps. You can replace this with the number of steps you want. Let us know if you have any further questions.

-Naren

Thank you for your reply!
But since I didn’t bind the variable ‘Time’ with the xAxis, it is impossible to decide what is ‘1 step’, right? Actually, I want it to move forward 12 months at a time, but by using ‘step(1)’, I can only move forward 8 months at a time.

Hi Zhen,

A ‘step’ refers to 1 timestep in your model, which it sounds like is 8 in your case. If you want to move 12 at a time, you should change it in your model. Or if your issue is about labelling in your xAxis, you can set a labelFormatter or control the number of tickets by following the Contour documentation.

Did that answer your question, or was your issue about something else?