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
a9ce4bcb
Commit
a9ce4bcb
authored
Mar 24, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/datazenit/c3
into datazenit-master
parents
c60b63b6
16a1e6d5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
c3.js
c3.js
+4
-6
No files found.
c3.js
View file @
a9ce4bcb
...
...
@@ -179,7 +179,7 @@
/*-- Set Variables --*/
var
clipId
=
__bindto
.
replace
(
'#'
,
''
)
+
'-clip'
,
var
clipId
=
(
typeof
__bindto
===
"string"
?
__bindto
.
replace
(
'#'
,
''
)
:
__bindto
.
id
)
+
'-clip'
,
clipPath
=
getClipPath
(
clipId
);
var
isTimeSeries
=
(
__axis_x_type
===
'timeseries'
),
...
...
@@ -993,8 +993,7 @@
// check "x" is defined if timeseries
if
(
isTimeSeries
&&
xs
.
length
===
0
)
{
window
.
alert
(
'data.x or data.xs must be specified when axis.x.type == "timeseries"'
);
return
[];
throw
new
Error
(
'data.x or data.xs must be specified when axis.x.type == "timeseries"'
);
}
// save x for update data by load
...
...
@@ -1882,8 +1881,7 @@
selectChart
=
d3
.
select
(
__bindto
);
if
(
selectChart
.
empty
())
{
window
.
alert
(
'No bind element found. Check the selector specified by "bindto" and existance of that element. Default "bindto" is "#chart".'
);
return
;
throw
new
Error
(
'No bind element found. Check the selector specified by "bindto" and existance of that element. Default "bindto" is "#chart".'
);
}
else
{
selectChart
.
html
(
""
);
}
...
...
@@ -3202,7 +3200,7 @@
/*-- Event Handling --*/
function
getTargetSelectorSuffix
(
targetId
)
{
return
targetId
?
'-'
+
targetId
.
replace
(
/
\.
/g
,
'
\\
.
'
)
:
''
;
return
targetId
?
'-'
+
targetId
.
replace
(
/
([^
a-zA-Z0-9-_
])
/g
,
'-
'
)
:
''
;
}
function
getTargetSelector
(
targetId
)
{
return
'.target'
+
getTargetSelectorSuffix
(
targetId
);
...
...
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