cancel
Showing results for 
Search instead for 
Did you mean: 

How to give the min and max range for CategoryAxis(X-axis) of vizframe Line Chart?

0 Kudos

Hi all,

I am using Vizframe line Chart. I want to plot more than 400 points.So How to define starting and ending points or minimum and maximum scale points for the CategoryAxis(X-axis) of Vizframe Line chart. I can able to set the min and max points for ValueAxis(Y-axis). But there is no property for CategoryAxis in documentation

yAxis : {
                    scale: {
                                    fixedRange : true,            
                                    minValue : 0,
                                    maxValue : 5000
                           }
                  }
(Or)

this.getView().byId("LineChart").setVizScales({
                  valueAxis :{
                                 max : 50000,
                                 min : 0
}
});


Accepted Solutions (0)

Answers (1)

Answers (1)

former_member196805
Contributor
0 Kudos

CategoryAxis is not a scale so it is not possible to limit the number of dimension points visible on a plotArea view. The alternative is to set the starting dimension value of the plotArea view. Let's use https://jsbin.com/vofimopagu/edit?html,output to explain. Assuming:

1, "Supplier" is the dimension defined to vizFrame

2, "Supplier-50" is one of the value which I wish the view to start to be visible

you could try set chart property

plotArea:{window:{start: {categoryAxis: {'Supplier': 'Supplier-50'}}}}