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

RadialBar isn't rendering when series are over 100 #219

Closed
amakh opened this issue Dec 1, 2018 · 2 comments
Closed

RadialBar isn't rendering when series are over 100 #219

amakh opened this issue Dec 1, 2018 · 2 comments

Comments

@amakh
Copy link

amakh commented Dec 1, 2018

Codepen

Codepen demo

Explanation

When series value are over 100 the chart isn't rendering.
I could set the value of the chart to 100 but how could I keep the displayed value to 110 ?

@junedchhipa
Copy link
Contributor

Radialbars accepts only percentage values between 0 and 100
But, if you want to show custom values, take a look at this codepen - https://codepen.io/apexcharts/pen/mQgvVX

plotOptions: {
    radialBar: {
      dataLabels: {
        value: {
          formatter: function(val) {
            return 2280;
          }
        }
      }
   }
}

@amakh
Copy link
Author

amakh commented Dec 4, 2018

Yes that's the solution I used. But because the value could never be over 100, the chart itself could draw to 100 even if the serie is higher without passing another value to display.

Thanks anyway, I really enjoy using your charts ;)

@amakh amakh closed this as completed Dec 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants