Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
c3-closed
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
charts
c3-closed
Commits
a51bb847
Commit
a51bb847
authored
Jul 12, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply data.order to donut/pie chart
parent
fb345909
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
1 deletion
+2
-1
c3.js
c3.js
+1
-1
c3.min.js
c3.min.js
+0
-0
chart_donut.html
htdocs/samples/chart_donut.html
+1
-0
No files found.
c3.js
View file @
a51bb847
...
...
@@ -1020,7 +1020,7 @@
pie
=
d3
.
layout
.
pie
().
value
(
function
(
d
)
{
return
d
.
values
.
reduce
(
function
(
a
,
b
)
{
return
a
+
b
.
value
;
},
0
);
});
if
(
!
__
pie_sort
||
!
__donut_sort
)
{
// TODO: this needs to be called by each type
if
(
!
__
data_order
||
!
__pie_sort
||
!
__donut_sort
)
{
pie
.
sort
(
null
);
}
...
...
c3.min.js
View file @
a51bb847
This source diff could not be displayed because it is too large. You can
view the blob
instead.
htdocs/samples/chart_donut.html
View file @
a51bb847
...
...
@@ -22,6 +22,7 @@
onmouseover
:
function
(
d
,
i
)
{
console
.
log
(
"onmouseover"
,
d
,
i
,
this
);
},
onmouseout
:
function
(
d
,
i
)
{
console
.
log
(
"onmouseout"
,
d
,
i
,
this
);
},
onclick
:
function
(
d
,
i
)
{
console
.
log
(
"onclick"
,
d
,
i
,
this
);
},
order
:
null
// set null to disable sort of data.
},
axis
:
{
x
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment