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
39b77ecc
Commit
39b77ecc
authored
Jun 07, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify option for focus grid line - #307
parent
645a034e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
3 deletions
+35
-3
c3.js
c3.js
+3
-3
c3.min.js
c3.min.js
+0
-0
index.html
htdocs/index.html
+3
-0
grid_focus.html
htdocs/samples/grid_focus.html
+29
-0
No files found.
c3.js
View file @
39b77ecc
...
...
@@ -234,12 +234,12 @@
// not used
// __grid_y_type = getConfig(['grid', 'y', 'type'], 'tick'),
__grid_y_lines
=
getConfig
([
'grid'
,
'y'
,
'lines'
],
[]),
__grid_y_ticks
=
getConfig
([
'grid'
,
'y'
,
'ticks'
],
10
);
__grid_y_ticks
=
getConfig
([
'grid'
,
'y'
,
'ticks'
],
10
),
__grid_focus_show
=
getConfig
([
'grid'
,
'focus'
,
'show'
],
true
);
// point - point of each data
var
__point_show
=
getConfig
([
'point'
,
'show'
],
true
),
__point_r
=
getConfig
([
'point'
,
'r'
],
2.5
),
__point_focus_line_enabled
=
getConfig
([
'point'
,
'focus'
,
'line'
,
'enabled'
],
true
),
__point_focus_expand_enabled
=
getConfig
([
'point'
,
'focus'
,
'expand'
,
'enabled'
],
true
),
__point_focus_expand_r
=
getConfig
([
'point'
,
'focus'
,
'expand'
,
'r'
]),
__point_select_r
=
getConfig
([
'point'
,
'focus'
,
'select'
,
'r'
]);
...
...
@@ -2918,7 +2918,7 @@
if
(
__grid_x_show
)
{
grid
.
append
(
"g"
).
attr
(
"class"
,
CLASS
.
xgrids
);
}
if
(
__
point_focus_line_enabled
)
{
if
(
__
grid_focus_show
)
{
grid
.
append
(
'g'
)
.
attr
(
"class"
,
CLASS
.
xgridFocus
)
.
append
(
'line'
)
...
...
c3.min.js
View file @
39b77ecc
This source diff could not be displayed because it is too large. You can
view the blob
instead.
htdocs/index.html
View file @
39b77ecc
...
...
@@ -246,6 +246,9 @@
<a
href=
"./samples/grid_x_lines_timeseries.html"
>
Show optional x grids with timeseries
</a>
<a
href=
"./samples/grid_focus.html"
>
Hide focus grid
</a>
</div>
<div
class=
"col-md-4"
>
<h3>
Region
</h3>
...
...
htdocs/samples/grid_focus.html
0 → 100644
View file @
39b77ecc
<html>
<head>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/c3.css"
>
</head>
<body>
<div
id=
"chart1"
></div>
<script
src=
"http://d3js.org/d3.v3.min.js"
charset=
"utf-8"
></script>
<script
src=
"/js/c3.js"
></script>
<script>
var
chart1
=
c3
.
generate
({
bindto
:
'#chart1'
,
data
:
{
columns
:
[
[
'data1'
,
30
,
200
,
100
,
400
,
150
,
250
],
[
'data2'
,
130
,
300
,
200
,
300
,
250
,
150
]
]
},
grid
:
{
focus
:
{
show
:
false
}
}
});
</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