Sign in to follow this  
rte

getting/setting canvas x-coordinate

Recommended Posts

Hello,

 

 

 

I am trying to create html/javascript overlay arround the candlestick graph, however I'm having trouble lining everything up correctly,

 

My problem comes from the fact that I cannot know for sure what is the x coordinates of the biginning and the end of the convas.

 

The only way arround that I've found was to set the following properties for the chart:

 

chartLeftMargin='20' chartRightMargin='20' canvasPadding='5' showYAxisValues ='0'

 

this way I know that canvas begins 25px after the div and ends 25px before. However this way completelly removes y-axis.

 

 

 

Is there anything I'm missing? Maybe it is possible to just get x and y of the canvas corner(s) somehow?

 

 

 

Thanks in advance

Share this post


Link to post
Share on other sites

If I do that then I do have a y-axis, my problem is values on the y-axis are of variable length depending which data set I'm using. Thus if I am to use your built-in y-axis I was not able to find a way to get the size of the canvas (since if the space for y-axis changes so does the size of the canvas).

Share this post


Link to post
Share on other sites
Guest Angie

Dear User,

 

We are delighted to announce that PowerCharts is now ready for your iPads and iPhones too. We have just released PowerCharts v3.2. Starting v3.2, PowerCharts has HighCharts embedded within it, and offers both Flash and JavaScript (HTML5) charting . The Flash charts are displayed on a majority of devices and the JavaScript charts on devices that do not support Flash, all of it without writing a line of code.

 

Automatic rendering of JavaScript charts on devices (like iPad and iPhone) where Flash player is not supported.

 

5 new chart types:

 

Heat Map Chart

 

Box and Whisker Chart

 

Step Line Chart

 

Error Line Chart

 

Error Scatter Chart

 

 

* Support for JSON data format.

 

* Support for LinkedCharts, where a single data source controls multiple charts.

 

* Interactive legends in charts allow selective showing/hiding of data series.

 

* Legends now support icons for each data series.

 

* Better management of labels on charts.

 

* Labels now have an auto rendering mode to prevent them from overlapping, the chart selects the best display mode depending on the length of the labels and the width of the chart.

 

* Long labels are truncated, with ellipses appended to the truncated end of each label, and a tooltip bearing the completed label text is displayed when the user hovers over a truncated label.

 

* Support for line breaks and wrapping in all text elements including: caption, sub caption, X-axis title, Y-axis title, Labels and tooltips.

 

* In Line charts, data values can now be positioned either above or below the dataplots. Automatic positioning of data values is also supported.

 

* In Step-line charts dataplots can be joined using vertical lines.

 

* Custom alignment of caption and sub caption using STYLES.

 

* Advanced print management using JavaScript.

 

* Additional options for efficient event handling using JavaScript.

 

* Support for dynamic update of chart properties using JavaScript(barring select scatter and drag charts).

 

* Charts now support % based sizes along with dynamic resizing (barring select scatter and drag charts).

 

 

Learn more about everything new in PowerCharts v3.2 at : http:/ www.fusioncharts.com/PowerCharts/

 

We would love to hear from you at: http://www.fusioncharts.com/contact/

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this