on 03-12-2014 10:43 AM
got it
var axis = new sap.viz.ui5.types.Axis().setScale(new sap.viz.ui5.types.Axis_scale().setMinValue(350).setMaxValue(500).setFixedRange(true));
````````````````````````````````
plotArea : {
colorPalette: ["#DF0101","#01DF01"]
},
yAxis : axis ,
dataset : oDataset
});
//With Viz Scale. (After the chart is rendered )
var scales = chart.getVizScales();
scales[1].min = 350 ; // scales[1].feed = 'valueAxis' - choose the array index accordingly
scales[1].max = 500 ;
chart.setVizScales(scales);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sreehari,
I tried to set the y-axis scale for line chart by using code. But its showing the default value, not displaying the value what i gave. Adding my code for reference.
var axis = new sap.viz.ui5.types.Axis().setScale(
new sap.viz.ui5.types.Axis_scale().setMinValue(20.0).setMaxValue(100.0).setFixedRange(true));
column = new sap.viz.ui5.Line({
width : "100%",
height : "400px",
legendGroup: legendPosition,
plotArea : {
colorPalette : ['#F67A7A','#FEE00A','#B6C359'],
},
title : {
visible : false,
text : ''
},
xAxis:{
title:{visible:false} ,
},
yAxis : axis ,
dataset : dataset
});
Hello Sreehari,
Even am also getting some error in the console, can you please look at this error and help me to resolve it ??
here is my code
var axis = new sap.viz.ui5.types.Axis().setScale(new sap.viz.ui5.types.Axis_scale().setMinValue(0).setMaxValue(1).setFixedRange(true));
var dataset1 = new sap.viz.ui5.data.FlattenedDataset({
dimensions: [{
axis: 1,
name: 'DATE',
value: '{TEXT_DATE}'
}],
measures: [{
name: 'AVAILABILITY',
value: '{AVAILABILITY}'
},{
name: 'QUALITY',
value: '{QUALITY}'
},{
name: 'PERFORMANCE',
value: '{PERFORMANCE}'
}
],
data: {
path: "/d/results"
}
});
oVizFrame1.setVizProperties({
valueAxis: {
label: {
formatString: '0'
}
},
plotArea: {
dataLabel: {
visible: true
}
},
title:{
text : "Daily OEE Details"
},
legend: {
title: {
visible: true
},
yAxis : axis ,
Regards,
Bharath
Hi Sreehari V Pillai,
How did you solved the issue?
Please suggest.
Regards,
Anmol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.