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
57dbe886
Commit
57dbe886
authored
Nov 30, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tick text when flow API called - #772
parent
8b770dbc
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
6 deletions
+14
-6
c3.js
c3.js
+7
-3
c3.min.js
c3.min.js
+0
-0
api.flow.js
src/api.flow.js
+2
-1
core.js
src/core.js
+5
-2
No files found.
c3.js
View file @
57dbe886
...
...
@@ -427,7 +427,9 @@
c3_chart_internal_fn
.
redraw
=
function
(
options
,
transitions
)
{
var
$$
=
this
,
main
=
$$
.
main
,
d3
=
$$
.
d3
,
config
=
$$
.
config
;
var
areaIndices
=
$$
.
getShapeIndices
(
$$
.
isAreaType
),
barIndices
=
$$
.
getShapeIndices
(
$$
.
isBarType
),
lineIndices
=
$$
.
getShapeIndices
(
$$
.
isLineType
);
var
withY
,
withSubchart
,
withTransition
,
withTransitionForExit
,
withTransitionForAxis
,
withTransform
,
withUpdateXDomain
,
withUpdateOrgXDomain
,
withTrimXDomain
,
withLegend
,
withEventRect
,
withDimension
;
var
withY
,
withSubchart
,
withTransition
,
withTransitionForExit
,
withTransitionForAxis
,
withTransform
,
withUpdateXDomain
,
withUpdateOrgXDomain
,
withTrimXDomain
,
withLegend
,
withEventRect
,
withDimension
,
withUpdateXAxis
;
var
hideAxis
=
$$
.
hasArcType
();
var
drawArea
,
drawBar
,
drawLine
,
xForText
,
yForText
;
var
duration
,
durationForExit
,
durationForAxis
;
...
...
@@ -443,6 +445,7 @@
withUpdateXDomain
=
getOption
(
options
,
"withUpdateXDomain"
,
false
);
withUpdateOrgXDomain
=
getOption
(
options
,
"withUpdateOrgXDomain"
,
false
);
withTrimXDomain
=
getOption
(
options
,
"withTrimXDomain"
,
true
);
withUpdateXAxis
=
getOption
(
options
,
"withUpdateXAxis"
,
withUpdateXDomain
);
withLegend
=
getOption
(
options
,
"withLegend"
,
false
);
withEventRect
=
getOption
(
options
,
"withEventRect"
,
true
);
withDimension
=
getOption
(
options
,
"withDimension"
,
true
);
...
...
@@ -506,7 +509,7 @@
$$
.
updateAxisLabels
(
withTransition
);
// show/hide if manual culling needed
if
(
withUpdateXDomain
&&
targetsToShow
.
length
)
{
if
(
(
withUpdateXDomain
||
withUpdateXAxis
)
&&
targetsToShow
.
length
)
{
if
(
config
.
axis_x_tick_culling
&&
tickValues
)
{
for
(
i
=
1
;
i
<
tickValues
.
length
;
i
++
)
{
if
(
tickValues
.
length
/
i
<
config
.
axis_x_tick_culling_max
)
{
...
...
@@ -5943,7 +5946,8 @@
},
withLegend
:
true
,
withTransition
:
orgDataCount
>
1
,
withTrimXDomain
:
false
withTrimXDomain
:
false
,
withUpdateXAxis
:
true
,
});
};
...
...
c3.min.js
View file @
57dbe886
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/api.flow.js
View file @
57dbe886
...
...
@@ -136,7 +136,8 @@ c3_chart_fn.flow = function (args) {
},
withLegend
:
true
,
withTransition
:
orgDataCount
>
1
,
withTrimXDomain
:
false
withTrimXDomain
:
false
,
withUpdateXAxis
:
true
,
});
};
...
...
src/core.js
View file @
57dbe886
...
...
@@ -422,7 +422,9 @@ c3_chart_internal_fn.updateTargets = function (targets) {
c3_chart_internal_fn
.
redraw
=
function
(
options
,
transitions
)
{
var
$$
=
this
,
main
=
$$
.
main
,
d3
=
$$
.
d3
,
config
=
$$
.
config
;
var
areaIndices
=
$$
.
getShapeIndices
(
$$
.
isAreaType
),
barIndices
=
$$
.
getShapeIndices
(
$$
.
isBarType
),
lineIndices
=
$$
.
getShapeIndices
(
$$
.
isLineType
);
var
withY
,
withSubchart
,
withTransition
,
withTransitionForExit
,
withTransitionForAxis
,
withTransform
,
withUpdateXDomain
,
withUpdateOrgXDomain
,
withTrimXDomain
,
withLegend
,
withEventRect
,
withDimension
;
var
withY
,
withSubchart
,
withTransition
,
withTransitionForExit
,
withTransitionForAxis
,
withTransform
,
withUpdateXDomain
,
withUpdateOrgXDomain
,
withTrimXDomain
,
withLegend
,
withEventRect
,
withDimension
,
withUpdateXAxis
;
var
hideAxis
=
$$
.
hasArcType
();
var
drawArea
,
drawBar
,
drawLine
,
xForText
,
yForText
;
var
duration
,
durationForExit
,
durationForAxis
;
...
...
@@ -438,6 +440,7 @@ c3_chart_internal_fn.redraw = function (options, transitions) {
withUpdateXDomain
=
getOption
(
options
,
"withUpdateXDomain"
,
false
);
withUpdateOrgXDomain
=
getOption
(
options
,
"withUpdateOrgXDomain"
,
false
);
withTrimXDomain
=
getOption
(
options
,
"withTrimXDomain"
,
true
);
withUpdateXAxis
=
getOption
(
options
,
"withUpdateXAxis"
,
withUpdateXDomain
);
withLegend
=
getOption
(
options
,
"withLegend"
,
false
);
withEventRect
=
getOption
(
options
,
"withEventRect"
,
true
);
withDimension
=
getOption
(
options
,
"withDimension"
,
true
);
...
...
@@ -501,7 +504,7 @@ c3_chart_internal_fn.redraw = function (options, transitions) {
$$
.
updateAxisLabels
(
withTransition
);
// show/hide if manual culling needed
if
(
withUpdateXDomain
&&
targetsToShow
.
length
)
{
if
(
(
withUpdateXDomain
||
withUpdateXAxis
)
&&
targetsToShow
.
length
)
{
if
(
config
.
axis_x_tick_culling
&&
tickValues
)
{
for
(
i
=
1
;
i
<
tickValues
.
length
;
i
++
)
{
if
(
tickValues
.
length
/
i
<
config
.
axis_x_tick_culling_max
)
{
...
...
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