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
90ab32dc
Commit
90ab32dc
authored
Oct 28, 2015
by
Evgeny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Redraw after withData
parent
28dba4fd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
6 deletions
+22
-6
c3.js
c3.js
+11
-4
core.js
src/core.js
+6
-1
lines.js
src/lines.js
+5
-1
No files found.
c3.js
View file @
90ab32dc
...
...
@@ -493,6 +493,12 @@
// export element of the chart
$$
.
api
.
element
=
$$
.
selectChart
.
node
();
if
(
$$
.
config
.
hasSubs
||
$$
.
config
.
isSub
){
$$
.
api
.
flush
();
setTimeout
(
function
(){
$$
.
api
.
flush
();
},
200
);
}
};
c3_chart_internal_fn
.
smoothLines
=
function
(
el
,
type
)
{
...
...
@@ -5090,9 +5096,6 @@
found
=
false
,
index
=
0
,
gMin
=
config
.
gauge_min
,
gMax
=
config
.
gauge_max
,
gTic
,
gValue
;
$$
.
pie
(
$$
.
filterTargetsToShow
(
$$
.
data
.
targets
)).
forEach
(
function
(
t
)
{
if
(
!
t
||
!
d
){
return
;
}
if
(
!
found
&&
t
.
data
.
id
===
d
.
data
.
id
)
{
found
=
true
;
d
=
t
;
...
...
@@ -6458,7 +6461,11 @@
x2
-=
(
$$
.
getCurrentWidth
());
}
else
{
$$
.
config
.
angle
=
$$
.
updateAngle
(
$$
.
config
.
newd
).
startAngle
;
try
{
$$
.
config
.
angle
=
$$
.
updateAngle
(
$$
.
config
.
newd
).
startAngle
;
}
catch
(
e
){
$$
.
config
.
angle
=
0
;
}
// Does first sequence take less than half of the chart?
var
small
=
toDegrees
(
$$
.
config
.
angle
)
>
0
;
...
...
src/core.js
View file @
90ab32dc
...
...
@@ -304,7 +304,12 @@ c3_chart_internal_fn.initWithData = function (data) {
// export element of the chart
$$
.
api
.
element
=
$$
.
selectChart
.
node
();
$$
.
updateAndRedraw
();
if
(
$$
.
config
.
hasSubs
||
$$
.
config
.
isSub
){
$$
.
api
.
flush
();
setTimeout
(
function
(){
$$
.
api
.
flush
();
},
200
);
}
};
c3_chart_internal_fn
.
smoothLines
=
function
(
el
,
type
)
{
...
...
src/lines.js
View file @
90ab32dc
...
...
@@ -35,7 +35,11 @@ c3.chart.internal.fn.getLineCoordsForBar = function(center, order){
x2
-=
(
$$
.
getCurrentWidth
());
}
else
{
$$
.
config
.
angle
=
$$
.
updateAngle
(
$$
.
config
.
newd
).
startAngle
;
try
{
$$
.
config
.
angle
=
$$
.
updateAngle
(
$$
.
config
.
newd
).
startAngle
;
}
catch
(
e
){
$$
.
config
.
angle
=
0
;
}
// Does first sequence take less than half of the chart?
var
small
=
toDegrees
(
$$
.
config
.
angle
)
>
0
;
...
...
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