Skip to content

Commit

Permalink
Merge pull request #261 from nzzdev/release-3.9.2
Browse files Browse the repository at this point in the history
Release 3.9.2
  • Loading branch information
dnlbln authored Apr 25, 2022
2 parents 1a3771e + b17b29c commit 9545a76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "q-chart",
"version": "3.9.1",
"version": "3.9.2",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
6 changes: 5 additions & 1 deletion routes/notification/logScaleMinValueRequirements.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ module.exports = {
try {
const item = request.payload.item;
const chartType = item.options.chartType;
const minVal = dataHelpers.getMinValue(item.data);

// First and foremost: cast all the floats in strings to actual floats.
const data = dataHelpers.getDataWithStringsCastedToFloats(item.data);

const minVal = dataHelpers.getMinValue(data);
const yScaleType = item.options.lineChartOptions.yScaleType;

if (chartType === "Line" && yScaleType === "log" && minVal <= 0) {
Expand Down

0 comments on commit 9545a76

Please sign in to comment.