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
6d8eaefa
Commit
6d8eaefa
authored
Oct 14, 2015
by
Evgeny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix drawing stacked-100 problem
parent
23724104
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
axis.js
src/axis.js
+5
-2
callbacks.js
src/callbacks.js
+1
-1
config.js
src/config.js
+3
-1
No files found.
src/axis.js
View file @
6d8eaefa
...
@@ -376,7 +376,11 @@ c3_chart_internal_fn.tuneAxis = function(sync, callback){
...
@@ -376,7 +376,11 @@ c3_chart_internal_fn.tuneAxis = function(sync, callback){
$$
.
pushCallback
(
callback
);
$$
.
pushCallback
(
callback
);
if
(
!
$$
.
config
.
stacked
){
// if we don't need to tune
if
(
$$
.
config
.
stacked
){
$$
.
cachedRedraw
();
return
;
}
var
apply
=
function
(){
var
apply
=
function
(){
...
@@ -409,7 +413,6 @@ c3_chart_internal_fn.tuneAxis = function(sync, callback){
...
@@ -409,7 +413,6 @@ c3_chart_internal_fn.tuneAxis = function(sync, callback){
$$
.
buffer
.
onlastfinish
(
"tune-axis"
,
apply
);
$$
.
buffer
.
onlastfinish
(
"tune-axis"
,
apply
);
$$
.
buffer
.
onlastfinish
(
"cached-redraw"
,
function
(){});
$$
.
buffer
.
onlastfinish
(
"cached-redraw"
,
function
(){});
}
}
}
};
};
...
...
src/callbacks.js
View file @
6d8eaefa
...
@@ -32,7 +32,7 @@ c3.chart.internal.fn.cachedRedraw = function(options, callback){
...
@@ -32,7 +32,7 @@ c3.chart.internal.fn.cachedRedraw = function(options, callback){
$$
.
pushCallback
(
callback
);
$$
.
pushCallback
(
callback
);
if
(
$$
.
shouldCache
){
if
(
$$
.
config
.
shouldCache
){
if
(
!
$$
.
buffer
.
has
(
"tune-axis"
)){
if
(
!
$$
.
buffer
.
has
(
"tune-axis"
)){
$$
.
buffer
.
onlastfinish
(
"cached-redraw"
,
$$
.
buffer
.
onlastfinish
(
"cached-redraw"
,
function
(){
function
(){
...
...
src/config.js
View file @
6d8eaefa
...
@@ -192,7 +192,9 @@ c3_chart_internal_fn.getDefaultConfig = function () {
...
@@ -192,7 +192,9 @@ c3_chart_internal_fn.getDefaultConfig = function () {
},
},
tooltip_init_show
:
false
,
tooltip_init_show
:
false
,
tooltip_init_x
:
0
,
tooltip_init_x
:
0
,
tooltip_init_position
:
{
top
:
'0px'
,
left
:
'50px'
}
tooltip_init_position
:
{
top
:
'0px'
,
left
:
'50px'
},
// caching
shouldCache
:
true
};
};
Object
.
keys
(
this
.
additionalConfig
).
forEach
(
function
(
key
)
{
Object
.
keys
(
this
.
additionalConfig
).
forEach
(
function
(
key
)
{
...
...
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