ParasolJS / parasol-es

ES6 module for interactive visualization of multi-objective optimization problems
https://parasoljs.github.io/
MIT License
26 stars 5 forks source link

How to specify the axis limits? #31

Closed Liwi1979 closed 4 years ago

Liwi1979 commented 4 years ago

How to specify the axis limits? For example, how to change [10 50] to [0 100]?

wraseman commented 4 years ago

@Liwi1979, thanks for your question. Specifying axis limits is available through the Parcoords API that is available through Parasol by using the .scale() method.

For instance, to specify the name of an axis called "Percent" on the 1st parallel coordinate plot (i.e., chart) and change the extent from [10, 50] to [0, 100], you would use the following command:

ps.charts[0].scale('Percent", [0, 100])

For a more detailed example, see its usage in the LRGV Parasol app. I"ve also updated the Parasol API on the Wiki page to include more detail on the .scale() method.