Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

d2-charts-api

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

d2-charts-api - npm Package Compare versions

Comparing version 28.0.1 to 28.0.2

13

lib/config/adapters/dhis_highcharts/series/index.js

@@ -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);

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc