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
facf083d
Commit
facf083d
authored
May 27, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update sample for gauge - #254
parent
5d047c11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
18 deletions
+14
-18
chart_arc_gauge.html
htdocs/samples/chart_arc_gauge.html
+14
-18
No files found.
htdocs/samples/chart_arc_gauge.html
View file @
facf083d
...
@@ -40,7 +40,9 @@
...
@@ -40,7 +40,9 @@
var
cycleDemo
=
function
()
{
var
cycleDemo
=
function
()
{
setTimeout
(
function
()
{
setTimeout
(
function
()
{
chart
=
chart
.
update
([
'gauge'
,
'color'
],
''
);
d3
.
select
(
'#chart .c3-chart-arcs-background'
)
.
transition
()
.
style
(
'fill'
,
'#333'
);
},
1000
);
},
1000
);
setTimeout
(
function
()
{
setTimeout
(
function
()
{
...
@@ -61,9 +63,11 @@
...
@@ -61,9 +63,11 @@
});
});
},
4000
);
},
4000
);
// setTimeout(function () {
setTimeout
(
function
()
{
// chart = chart.update(['gauge', 'color'], '#e0e0e0');
d3
.
select
(
'#chart .c3-chart-arcs-background'
)
// }, 5000);
.
transition
()
.
style
(
'fill'
,
'#e0e0e0'
);
},
5000
);
setTimeout
(
function
()
{
setTimeout
(
function
()
{
chart
.
load
({
chart
.
load
({
...
@@ -83,49 +87,41 @@
...
@@ -83,49 +87,41 @@
});
});
},
8000
);
},
8000
);
// setTimeout(function () {
// chart = chart.update(['gauge', 'width'], 10);
// }, 9000);
setTimeout
(
function
()
{
setTimeout
(
function
()
{
chart
.
load
({
chart
.
load
({
columns
:
[[
'data'
,
0
]]
columns
:
[[
'data'
,
0
]]
});
});
},
10
000
);
},
9
000
);
setTimeout
(
function
()
{
setTimeout
(
function
()
{
chart
.
load
({
chart
.
load
({
columns
:
[[
'data'
,
50
]]
columns
:
[[
'data'
,
50
]]
});
});
},
1
1
000
);
},
1
0
000
);
setTimeout
(
function
()
{
setTimeout
(
function
()
{
chart
.
load
({
chart
.
load
({
columns
:
[[
'data'
,
91.4
]]
columns
:
[[
'data'
,
91.4
]]
});
});
},
12000
);
},
11000
);
// setTimeout(function () {
// chart = chart.update(['gauge', 'width'], 39);
// }, 13000);
setTimeout
(
function
()
{
setTimeout
(
function
()
{
chart
.
load
({
chart
.
load
({
columns
:
[[
'data'
,
0
]]
columns
:
[[
'data'
,
0
]]
});
});
},
1
4
000
);
},
1
2
000
);
setTimeout
(
function
()
{
setTimeout
(
function
()
{
chart
.
load
({
chart
.
load
({
columns
:
[[
'data'
,
50
]]
columns
:
[[
'data'
,
50
]]
});
});
},
1
5
000
);
},
1
3
000
);
setTimeout
(
function
()
{
setTimeout
(
function
()
{
chart
.
load
({
chart
.
load
({
columns
:
[[
'data'
,
91.4
]]
columns
:
[[
'data'
,
91.4
]]
});
});
},
1
6
000
);
},
1
4
000
);
}
}
...
...
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