Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Line chart fixed values on X axis

Summary:

Hi, how can I set fixed values on X axis in a Line chart?

Content (please ensure you mask any confidential information):

I would like to set the X axis to contain whole numbers - lets say 0 to 10, instead of the 'dist' property, yet keeping all values in series.

Thank you.

Version (include the version you are using, if applicable):

23.10

Code Snippet (add any code snippets that support your topic, if applicable):

My chart Item template:

 <template slot="itemTemplate" data-oj-as="item">

  <oj-chart-item value="[[item.data.value]]" group-id="[[ [item.data.dist] ]]" series-id="[[item.data.series]]"></oj-chart-item>

  </template>


example for data object:

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!