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

@density/chart-count-graph

Package Overview
Dependencies
Maintainers
5
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@density/chart-count-graph - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

30

dist/story.js

@@ -9,5 +9,5 @@ 'use strict';

var React = _interopRequireWildcard(_react);
var _react2 = _interopRequireDefault(_react);
var _react2 = require('@storybook/react');
var _react3 = require('@storybook/react');

@@ -26,4 +26,2 @@ var _index = require('../index');

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

@@ -54,3 +52,3 @@

(0, _react2.storiesOf)('Count Graph', module).add('With a day\'s worth of data, with an explicit start / end and one flag.', function () {
(0, _react3.storiesOf)('Count Graph', module).add('With a day\'s worth of data, with an explicit start / end and one flag.', function () {
var fullDayWithFlag = uncompressData(fullDayOfData).map(function (x, i) {

@@ -62,3 +60,3 @@ if (i === 380) {

});
return React.createElement(CountGraph, {
return _react2.default.createElement(CountGraph, {
data: fullDayWithFlag,

@@ -75,3 +73,3 @@ start: (0, _moment2.default)("2017-03-28T12:00:00.000Z"),

});
return React.createElement(CountGraph, {
return _react2.default.createElement(CountGraph, {
data: fullDayWithFlag,

@@ -82,3 +80,3 @@ start: (0, _moment2.default)("2017-03-28T12:00:00.000Z"),

}).add('With a partial day\'s worth of data, with an explicit start / end.', function () {
return React.createElement(CountGraph, {
return _react2.default.createElement(CountGraph, {
data: uncompressData(partialDayOfData),

@@ -89,7 +87,7 @@ start: (0, _moment2.default)("2017-03-29T12:00:00.000Z"),

}).add('Without start / end on a partial day\'s data, the graph scales to fit the data.', function () {
return React.createElement(CountGraph, {
return _react2.default.createElement(CountGraph, {
data: uncompressData(partialDayOfData)
});
}).add('With only a partial day\'s worth of data, and a start / end time.\n Notice that the overlay line only shows when hovering over the data, and not the whitespace.', function () {
return React.createElement(CountGraph, {
return _react2.default.createElement(CountGraph, {
data: uncompressData(partialDayOfData),

@@ -100,3 +98,3 @@ start: (0, _moment2.default)("2017-03-29T10:00:00.000Z"),

}).add('With negative counts and small width', function () {
return React.createElement(CountGraph, {
return _react2.default.createElement(CountGraph, {
width: 400,

@@ -106,3 +104,3 @@ data: uncompressData(dayOfDataWithNegatives)

}).add('With data that doesn\'t include zero in the scale. This was the "drawing below the x axis" bug.', function () {
return React.createElement(CountGraph, {
return _react2.default.createElement(CountGraph, {
start: (0, _moment2.default)("2017-04-13T08:00:00.000Z"),

@@ -257,3 +255,3 @@ end: (0, _moment2.default)("2017-04-13T16:00:00.000Z"),

}).add('Without any data', function () {
return React.createElement(CountGraph, { data: [] });
return _react2.default.createElement(CountGraph, { data: [] });
}).add('With adding points to the graph over time. This is to show that the graph can receive updates.', function () {

@@ -292,3 +290,3 @@ var AddNewPointsToGraph = function (_React$Component) {

console.log('update', this.state.data);
return React.createElement(CountGraph, { data: this.state.data });
return _react2.default.createElement(CountGraph, { data: this.state.data });
}

@@ -298,5 +296,5 @@ }]);

return AddNewPointsToGraph;
}(React.Component);
}(_react2.default.Component);
return React.createElement(AddNewPointsToGraph, null);
return _react2.default.createElement(AddNewPointsToGraph, null);
});

@@ -303,0 +301,0 @@

{
"name": "@density/chart-count-graph",
"version": "1.2.0",
"version": "1.2.1",
"description": "Count Graph chart",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -1,2 +0,2 @@

import * as React from 'react';
import React from 'react';
import {storiesOf} from '@storybook/react';

@@ -3,0 +3,0 @@ import {chartAsReactComponent} from '../index';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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