SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components

1
0

Hello,

Is it possible to access the native canvas context to draw on the javascript chart surface? like for example, draw a circle or arc using HTML5 canvas apis.

-jackson

Version
latest
  • You must to post comments
1
0

Hi Mason

We don’t use HTML5 canvas for drawing on SciChartSurface, we are using our own WebGL graphics engine.

There are some functions exposed for example:

  • You can create a Custom Annotation which uses SVG and can be placed at an X1 Y1 location on the chart
  • You can create a custom pointmarker which uses HTML5 canvas to draw a shape once, then repeats that shape for each X Y point on a scatter chart

What was it you wanted to achieve? (do you have some more info about requirements).

It would not be difficult for us to expose more of the API allowing you to draw custom shapes with our WebGL engine. For example we have the Custom Series API in other scichart platforms which uses a WebGL render context. It would be helpful to know what you want to draw and why

Best regards
Andrew

  • You must to post comments
1
0

Thank you, I was trying to recreate the market profile renderable series on JS. Was wondering if it should be a custom annotation where users can drag across a bunch of bars and then we calc/render the profile. or it could be a custom series by itself extended from the base renderable series?

https://www.scichart.com/documentation/win/current/webframe.html#The%20Market%20Profile%20RenderableSeries.html

Images
  • Andrew Burnett-Thompson
    Hi Mason, if you’re trialling from a company & intent to buy we can schedule a discussion with our dev team as we might have some ideas for you. There’s an API in-progress now called subcharts (charts in charts) which will be able to do this. Creating a demo with volume profile in scichart.js is on our task board. The placement of the volume profile is the hard part but actual rendering / drawing of it not so hard.
  • mason jackson
    Hello Andrew, That is the intent. Currently evaluating the capabilities of scichart JS and one of the key requirements is to be able to render volume profile and market profile on a JS chart.
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.