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
d48cfbec
Commit
d48cfbec
authored
May 01, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add sample for axis x tick rotate
parent
271e4a16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
0 deletions
+55
-0
axes_x_tick_rotate.html
htdocs/samples/axes_x_tick_rotate.html
+55
-0
No files found.
htdocs/samples/axes_x_tick_rotate.html
0 → 100644
View file @
d48cfbec
<html>
<head>
<link
href=
"/css/c3.css"
rel=
"stylesheet"
type=
"text/css"
>
</head>
<body>
<div
id=
"chart"
></div>
<script
src=
"http://d3js.org/d3.v3.min.js"
charset=
"utf-8"
></script>
<script
src=
"/js/c3.js"
></script>
<script>
var
chart
=
c3
.
generate
({
data
:
{
columns
:
[
[
'data1'
,
30
,
200
,
100
,
400
,
150
,
250
,
100
,
600
],
[
'data2'
,
50
,
20
,
10
,
40
,
15
,
25
],
]
},
axis
:
{
// rotated: true,
x
:
{
tick
:
{
format
:
function
()
{
return
"hogehogehogehogehoge"
;
},
rotate
:
30
,
},
label
:
{
text
:
'Hogehoge'
,
position
:
'outer-middle'
},
height
:
90
,
},
y
:
{
label
:
{
text
:
'Y Label'
,
position
:
'outer-center'
}
}
},
subchart
:
{
show
:
true
}
});
setTimeout
(
function
()
{
chart
.
load
({
columns
:
[
// ['data1', 30, 200, 100, 400, 150, 250, 100, 400],
[
'data1'
,
1030
,
2000
,
1000
,
1400
,
1500
,
1250
,
1100
,
140000
],
]
})
},
1000
);
</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