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
91fcd44c
Commit
91fcd44c
authored
Nov 20, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduce initChartElements() - #740
parent
9416914e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
24 deletions
+20
-24
c3.js
c3.js
+10
-12
c3.min.js
c3.min.js
+0
-0
core.js
src/core.js
+10
-12
No files found.
c3.js
View file @
91fcd44c
...
...
@@ -143,6 +143,14 @@
$$
.
axes
.
subx
=
d3
.
selectAll
([]);
// needs when excluding subchart.js
};
c3_chart_internal_fn
.
initChartElements
=
function
()
{
if
(
this
.
initBar
)
{
this
.
initBar
();
}
if
(
this
.
initLine
)
{
this
.
initLine
();
}
if
(
this
.
initArc
)
{
this
.
initArc
();
}
if
(
this
.
initGauge
)
{
this
.
initGauge
();
}
if
(
this
.
initText
)
{
this
.
initText
();
}
};
c3_chart_internal_fn
.
initWithData
=
function
(
data
)
{
var
$$
=
this
,
d3
=
$$
.
d3
,
config
=
$$
.
config
;
var
defs
,
main
,
binding
=
true
;
...
...
@@ -245,18 +253,8 @@
// Cover whole with rects for events
$$
.
initEventRect
();
// Define g for bar chart area
if
(
$$
.
initBar
)
{
$$
.
initBar
();
}
// Define g for line chart area
if
(
$$
.
initLine
)
{
$$
.
initLine
();
}
// Define g for arc chart area
if
(
$$
.
initArc
)
{
$$
.
initArc
();
}
if
(
$$
.
initGauge
)
{
$$
.
initGauge
();
}
// Define g for text area
if
(
$$
.
initText
)
{
$$
.
initText
();
}
// Define g for chart
$$
.
initChartElements
();
// if zoom privileged, insert rect to forefront
// TODO: is this needed?
...
...
c3.min.js
View file @
91fcd44c
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/core.js
View file @
91fcd44c
...
...
@@ -138,6 +138,14 @@ c3_chart_internal_fn.initParams = function () {
$$
.
axes
.
subx
=
d3
.
selectAll
([]);
// needs when excluding subchart.js
};
c3_chart_internal_fn
.
initChartElements
=
function
()
{
if
(
this
.
initBar
)
{
this
.
initBar
();
}
if
(
this
.
initLine
)
{
this
.
initLine
();
}
if
(
this
.
initArc
)
{
this
.
initArc
();
}
if
(
this
.
initGauge
)
{
this
.
initGauge
();
}
if
(
this
.
initText
)
{
this
.
initText
();
}
};
c3_chart_internal_fn
.
initWithData
=
function
(
data
)
{
var
$$
=
this
,
d3
=
$$
.
d3
,
config
=
$$
.
config
;
var
defs
,
main
,
binding
=
true
;
...
...
@@ -240,18 +248,8 @@ c3_chart_internal_fn.initWithData = function (data) {
// Cover whole with rects for events
$$
.
initEventRect
();
// Define g for bar chart area
if
(
$$
.
initBar
)
{
$$
.
initBar
();
}
// Define g for line chart area
if
(
$$
.
initLine
)
{
$$
.
initLine
();
}
// Define g for arc chart area
if
(
$$
.
initArc
)
{
$$
.
initArc
();
}
if
(
$$
.
initGauge
)
{
$$
.
initGauge
();
}
// Define g for text area
if
(
$$
.
initText
)
{
$$
.
initText
();
}
// Define g for chart
$$
.
initChartElements
();
// if zoom privileged, insert rect to forefront
// TODO: is this needed?
...
...
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