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
Evgeny
c3-closed
Commits
2cba4381
Commit
2cba4381
authored
Feb 18, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update sample for stacked bar chart - #30
parent
86f54a53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
6 deletions
+20
-6
chart_bar_stacked.html
htdocs/samples/chart_bar_stacked.html
+20
-6
No files found.
htdocs/samples/chart_bar_stacked.html
View file @
2cba4381
...
...
@@ -11,13 +11,11 @@
var
chart
=
c3
.
generate
({
data
:
{
columns
:
[
[
'data1'
,
30
,
200
,
200
,
400
,
150
,
250
],
[
'data2'
,
130
,
-
100
,
100
,
200
,
150
,
50
]
[
'data1'
,
30
,
200
,
200
,
400
,
150
,
-
250
],
[
'data2'
,
130
,
-
100
,
100
,
200
,
150
,
50
],
[
'data3'
,
230
,
-
200
,
200
,
300
,
250
,
250
]
],
types
:
{
data1
:
'bar'
,
data2
:
'bar'
},
type
:
'bar'
,
groups
:
[
[
'data1'
,
'data2'
]
]
...
...
@@ -28,6 +26,22 @@
}
}
});
setTimeout
(
function
()
{
chart
.
groups
([[
'data1'
,
'data2'
,
'data3'
]])
},
500
);
setTimeout
(
function
()
{
chart
.
load
({
columns
:
[[
'data4'
,
100
,
50
,
150
,
-
200
,
300
,
-
100
]]
});
},
1000
);
setTimeout
(
function
()
{
chart
.
groups
([[
'data1'
,
'data2'
,
'data3'
,
'data4'
]])
},
1500
);
</script>
</body>
</html>
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