Search found 6 matches

by myTeeChart219
Tue May 16, 2017 8:50 am
Forum: Javascript / HTML5
Topic: Draw a line on the canvas
Replies: 1
Views: 3801

Draw a line on the canvas

Hi

I've looked at the Canvas demo to draw a rectangle, but I can't see how to draw a line? Is there a specific function that I can't find?

Please could you point me to the documentation or offer some basic code to draw a horizontal line on a line chart.

Many thanks
by myTeeChart219
Mon May 15, 2017 8:51 am
Forum: Javascript / HTML5
Topic: How to create a polynomial trendline in javascript?
Replies: 1
Views: 3603

How to create a polynomial trendline in javascript?

Hi Is it possible to call the teechart functions in Javascript - I've read Tutorial 7 which shows it for Java but I'can't work out how to do this in javascript. I'm looking to do something like this but I can't get it to work: Please help. Thank you. function draw() { Chart1=new Tee.Chart("canvas");...
by myTeeChart219
Mon May 01, 2017 1:36 pm
Forum: Javascript / HTML5
Topic: Set minimum start value for x axis
Replies: 1
Views: 3828

Set minimum start value for x axis

Hi Using the volume demo, I am trying to change the start value for the X axis. I've tried: Chart1.getAxes().getLeft().setAutomatic(false); Chart1.getAxes().getLeft().setMaximum(150); Chart1.getAxes().getLeft().setMinimum(76); but these functions/properties are not available for volume charts? I've ...
by myTeeChart219
Fri Apr 21, 2017 11:22 am
Forum: Javascript / HTML5
Topic: Highlight a volume or bar using JavaScript
Replies: 5
Views: 8541

Re: Highlight a volume or bar using JavaScript

That's great Yeray - but not for me :( Would you be kind enough to send me your example. I've tried this in Chrome and IE and cannot get it to work. I'm using version "TeeChart_for_JavaScript_Non_Commercial_v2015.05.02.1.8"? Is this the correct version? Here's my function: function draw() { Chart1=n...
by myTeeChart219
Fri Apr 21, 2017 8:16 am
Forum: Javascript / HTML5
Topic: Highlight a volume or bar using JavaScript
Replies: 5
Views: 8541

Re: Highlight a volume or bar using JavaScript

Thanks for the quick response, but unfortunately I can't get this to work using your volume graph demo? Taking the volume example from your demo, I added the code below and nothing changes: volume.palette.colors = []; for (var i=0; i<volume.count(); i++) { if (i<100) volume.palette.colors[i] = volum...
by myTeeChart219
Wed Apr 19, 2017 1:48 pm
Forum: Javascript / HTML5
Topic: Highlight a volume or bar using JavaScript
Replies: 5
Views: 8541

Highlight a volume or bar using JavaScript

I'm trying to recreate the attached image using javascript. I want to highlight a specific bar with a specific colour. Something like: Chart1.series.items[0].data.values[117].format.stroke.fill="red"; or Chart1.series.items[0].data.ValuesIndex[117].ValueColour("red"); How would I do that? I'd apprec...