Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using canvas or SVG to draw on a Chart #368

Open
KevinDoherty94 opened this issue Jul 25, 2022 · 2 comments
Open

Using canvas or SVG to draw on a Chart #368

KevinDoherty94 opened this issue Jul 25, 2022 · 2 comments
Labels

Comments

@KevinDoherty94
Copy link

Bug or Feature Request?

Possible feature request but mainly a question

Description

Hello, I'm looking to sketch a line by using onMouseMove using canvas or possibly by using SVG over my graph. Highcharts docs seems to provide options of rendering SVG
https://api.highcharts.com/class-reference/Highcharts.SVGRenderer
but I cannot find in the docs here on how to implement it or assign to my chart object. Is there a way to do this?

How to reproduce

n/a

Live demo demonstrating bug

n/a

Versions

  • React JSX Highcharts version:
  • Highcharts version:
  • React version:
@anajavi
Copy link
Collaborator

anajavi commented Jul 26, 2022

Here's a one way to use svg renderer:
https://stackblitz.com/edit/base-chart-example-wkndg9?file=MyChart.js

@KevinDoherty94
Copy link
Author

Hi @anajavi ,

Thanks again for getting back to me. Its very similar to what I want to achieve although I wanted to use a mousemove event to create a path on the chart itself although I'm not sure this is possible. Something similar to this http://jsfiddle.net/BlackLabel/7om63fv2/ would be perfect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants