@density/chart-daily-metrics
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -21,3 +21,3 @@ 'use strict'; | ||
var margin = { top: 50, right: 20, bottom: 30, left: 50 }; | ||
var margin = { top: 50, right: 20, bottom: 30, left: 20 }; | ||
@@ -33,4 +33,2 @@ function dailyMetrics(elem) { | ||
var yAxisGroup = g.append("g").attr("class", "daily-metrics-axis daily-metrics-axis-y"); | ||
return function (_ref) { | ||
@@ -62,3 +60,2 @@ var data = _ref.data, | ||
xAxisGroup.attr("transform", "translate(0," + graphHeight + ")").call(d3.axisBottom(xScale)); | ||
yAxisGroup.call(d3.axisLeft(yScale).ticks(10).tickFormat(d3.format("d"))); | ||
@@ -65,0 +62,0 @@ var dataSelection = g.selectAll(".daily-metrics-bar-group").data(data); |
@@ -5,3 +5,3 @@ import moment from 'moment'; | ||
const margin = {top: 50, right: 20, bottom: 30, left: 50}; | ||
const margin = {top: 50, right: 20, bottom: 30, left: 20}; | ||
@@ -18,5 +18,2 @@ export default function dailyMetrics(elem, props={}) { | ||
const yAxisGroup = g.append("g") | ||
.attr("class", "daily-metrics-axis daily-metrics-axis-y"); | ||
return ({data, width, height}) => { | ||
@@ -50,4 +47,2 @@ svg | ||
.call(d3.axisBottom(xScale)); | ||
yAxisGroup | ||
.call(d3.axisLeft(yScale).ticks(10).tickFormat(d3.format("d"))); | ||
@@ -54,0 +49,0 @@ const dataSelection = g.selectAll(".daily-metrics-bar-group").data(data); |
{ | ||
"name": "@density/chart-daily-metrics", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Daily Metrics chart", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
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
24164
260