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

Labels on Polar Area #344

Closed
luchux opened this issue Apr 1, 2014 · 9 comments
Closed

Labels on Polar Area #344

luchux opened this issue Apr 1, 2014 · 9 comments

Comments

@luchux
Copy link

luchux commented Apr 1, 2014

Hi everbody.
I have been exploring the idea of adding labels to Polar Area chart. I extended it in my local code, drawing arcs around the Polar Area from startAngle to startAngle + step, and writing the text along this arc.

Is there some limitation why Chartjs doesnt include labels in Polar Area? Otherwise I am keen to polish my code and ask for a pull request.

cheers

@scottmcculloch
Copy link

I would certainly like this functionality for a project I'm working on.

@esbenrune
Copy link

I would like the functionality too

@nnnick
Copy link
Member

nnnick commented Aug 9, 2014

I'm not sure if I totally follow? Mind attaching a screenshot of what you mean?

@scottmcculloch
Copy link

Here's an example of a chartjs polar chart with labels photoshopped on -- ideally the labels would curve along the outer of the circle... I'm also attaching an example from our old system where the charts are hard-coded, images selected based upon the data.
chartjslablesexample1
screenshot 2014-08-10 12 39 05

@fulldecent
Copy link
Contributor

Tagging: NEW CHART TYPES

@etimberg
Copy link
Member

Closing as duplicate of #52

@meghanavc2b
Copy link

meghanavc2b commented Feb 3, 2018

How are you doing this? Labels on the outer of the circle?
image
DO we have a solution to do it? Is this feature available in latest Chart.js version? Thanks

@scottmcculloch
Copy link

@meghanavc2b I had to do a workaround to get the labels -- I created an image with just the labels and then placed it as a background to the canvas element via css. Not ideal, but it works okay if you know ahead of time what you need and how it will be oriented.

@arthabus
Copy link

arthabus commented Feb 20, 2020

here is a hack that I ended up with - radar has the labels so you can draw the"radar" behind "polar area". Just add two canvases one above the other and setup the radar so only the labels are visible (like transparent colors for the chart lines etc).

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

No branches or pull requests

8 participants