donut-chart


increasing inner radius of donut chart and how can write inside donut chart


i am trying to increase inner radius of donut chart and also be able to write inside the donut chart.
$scope.donut = new RGraph.Pie('myDonut', $scope.donutData)
.Set('linewidth', 5)
.Set('strokestyle', 'white')
.Set('tooltips.event', 'onmousemove')
.Set('tooltips.effect', 'none')*/
.Set('colors', $scope.colors)
.Set('events.click', donutClick)
.Set('gutter.top', 60)
.Set('exploded', [])
.Set('variant', 'donut')
.Draw();
You can set the radius and the variant.donut.width properties:
obj.Set('radius', 250)
obj.Set('variant', 'donut')
obj.Set('variant.donut.width', 50)
And there's a new demo that demonstrates the radius setting here:
http://www.rgraph.net/tests/donut-in-donut.html
To write inside the ring you can use the drawing API text object. The X/Y coords are:
obj.ondraw = function (obj)
{
var x = obj.centerx
var y = obj.centery
}

Related Links

increasing inner radius of donut chart and how can write inside donut chart

Categories

HOME
powerbi
mod-rewrite
generics
bokeh
kendo-dropdown
haproxy
code-formatting
plpgsql
odata
semantic-web
mirc
moodle-api
google-search-console
siesta
locationmanager
sslhandshakeexception
multiple-tables
bosun
fluent-migrator
jstree
tracing
plyr
oracleforms
pyspark-sql
toad
autodesk-model-derivative
instructions
mongodb-3.4
seafile-server
counting
rails-postgresql
xerces-c
code-rally
aurelia-cli
eclipse-gmf
gitolite
widestring
iscroll
spring-restcontroller
microkernel
ejml
viewmodel
.net-micro-framework
django-static-precompiler
jgrapht
amazon-elastic-beanstalk
wikimapia
apache-modules
predicates
front-camera
perl-data-structures
pbx
nclam
nunit-console
perforce-integrate
swiffy
persistent-object-store
postal-code
fantom
dbmigrate
mod-auth-openidc
multivariate-testing
jquery-mobile-flipswitch
otl
android-2.3-gingerbread
network-printers
neo4jphp
air-native-extension
ivalueconverter
particle-swarm
san
mongo-jackson-mapper
ui-design
chefspec
cmath
multiple-dispatch
cakeyframeanimation
jdom
liveconnect
microblogging
asio
nsrangeexception
servlet-container
multiple-users
tabbarcontroller
j2mepolish
tacit-programming
account-management

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App