Something like:
Code: Select all
Chart1.series.items[0].data.values[117].format.stroke.fill="red";
or
Chart1.series.items[0].data.ValuesIndex[117].ValueColour("red");
I'd appreciate any suggestions or help on how to achieve it. Many thanks.
Code: Select all
Chart1.series.items[0].data.values[117].format.stroke.fill="red";
or
Chart1.series.items[0].data.ValuesIndex[117].ValueColour("red");
Code: Select all
var barSeries1 = Chart1.addSeries(new Tee.Bar()).addRandom(50);
barSeries1.palette.colors = [];
for (var i=0; i<barSeries1.count(); i++) {
if (i!=5)
barSeries1.palette.colors[i] = barSeries1.format.fill;
else
barSeries1.palette.colors[i] = "red";
}
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Code: Select all
volume.palette.colors = [];
for (var i=0; i<volume.count(); i++) {
if (i<100)
volume.palette.colors[i] = volume.format.fill;
else
volume.palette.colors[i] = "red";
}
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Code: Select all
function draw() {
Chart1=new Tee.Chart("canvas");
// Create series:
var volume=Chart1.addSeries(new Tee.Volume());
volume.palette.colors = [];
for (var i=0; i<volume.count(); i++) {
if (i<100)
volume.palette.colors[i] = volume.format.fill;
else
volume.palette.colors[i] = "red";
}
// Random data:
var value=Math.random()*10;
for(var t=0; t<200; t++) {
value+=Math.random()*20-10;
volume.data.values.push(value);
}
// Cosmetics:
Chart1.legend.visible=false;
Chart1.axes.bottom.title.text="Session";
Chart1.axes.bottom.grid.visible=false;
Chart1.axes.left.title.text="Quantity";
Chart1.title.text="Volume Series";
Chart1.draw();
}