[fix] path gradient bleed

This commit is contained in:
Prateeksha Singh 2018-04-19 04:18:26 +05:30
parent 91e81926b6
commit d5deb751c9
10 changed files with 15 additions and 9 deletions

View File

@ -3353,6 +3353,8 @@ class AxisChart extends BaseChart {
function() {
let s = this.state;
let d = s.datasets[index];
let minLine = s.yAxis.positions[0] < s.yAxis.zeroLine
? s.yAxis.positions[0] : s.yAxis.zeroLine;
return {
xPositions: s.xAxis.positions,
@ -3360,7 +3362,7 @@ class AxisChart extends BaseChart {
values: d.values,
zeroLine: s.yAxis.zeroLine,
zeroLine: minLine,
radius: this.lineOptions.dotSize || LINE_CHART_DOT_SIZE,
};
}.bind(this)

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -155,6 +155,8 @@ function addDays(date, numberOfDays) {
date.setDate(date.getDate() + numberOfDays);
}
// Composite Chart
// ================================================================================
var reportCountList = [152, 222, 199, 287, 534, 709, 1179, 1256, 1632, 1856, 1850];
var lineCompositeData = {

File diff suppressed because one or more lines are too long

View File

@ -302,6 +302,8 @@ export default class AxisChart extends BaseChart {
function() {
let s = this.state;
let d = s.datasets[index];
let minLine = s.yAxis.positions[0] < s.yAxis.zeroLine
? s.yAxis.positions[0] : s.yAxis.zeroLine;
return {
xPositions: s.xAxis.positions,
@ -309,7 +311,7 @@ export default class AxisChart extends BaseChart {
values: d.values,
zeroLine: s.yAxis.zeroLine,
zeroLine: minLine,
radius: this.lineOptions.dotSize || LINE_CHART_DOT_SIZE,
};
}.bind(this)