d2-charts-api
Advanced tools
Comparing version 28.0.1 to 28.0.2
@@ -42,2 +42,6 @@ 'use strict'; | ||
var _type = require('../type'); | ||
var _type2 = _interopRequireDefault(_type); | ||
var _ = require('..'); | ||
@@ -68,2 +72,11 @@ | ||
// DHIS2-2101 | ||
// show bar/columm chart as EPI curve (basically remove spacing between bars/columns) | ||
var chartType = (0, _type2.default)(layout.type).type; | ||
if ((chartType === 'column' || chartType === 'bar') && layout.showAsEpiCurve) { | ||
seriesObj.pointPadding = 0; | ||
seriesObj.groupPadding = 0; | ||
} | ||
// color | ||
@@ -70,0 +83,0 @@ seriesObj.color = getColor(colors, index); |
{ | ||
"name": "d2-charts-api", | ||
"version": "28.0.1", | ||
"version": "28.0.2", | ||
"description": "DHIS2 charts api", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
import getCumulativeData from './../getCumulativeData'; | ||
import getPie from './pie'; | ||
import getGauge from './gauge'; | ||
import getType from '../type'; | ||
import { CHART_TYPE_PIE, CHART_TYPE_GAUGE } from '..'; | ||
@@ -27,2 +28,11 @@ | ||
// DHIS2-2101 | ||
// show bar/columm chart as EPI curve (basically remove spacing between bars/columns) | ||
const chartType = getType(layout.type).type; | ||
if ((chartType === 'column' || chartType === 'bar') && layout.showAsEpiCurve) { | ||
seriesObj.pointPadding = 0; | ||
seriesObj.groupPadding = 0; | ||
} | ||
// color | ||
@@ -29,0 +39,0 @@ seriesObj.color = getColor(colors, index); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
210710
3033