@flourish/chart-layout
Advanced tools
Comparing version 8.0.1 to 8.0.2
{ | ||
"name": "@flourish/chart-layout", | ||
"version": "8.0.1", | ||
"version": "8.0.2", | ||
"description": "Create axes", | ||
@@ -5,0 +5,0 @@ "main": "chart-layout.js", |
@@ -0,1 +1,4 @@ | ||
# 8.0.2 | ||
* Prevent ticks for a hidden axis from effecting margins | ||
# 8.0.1 | ||
@@ -2,0 +5,0 @@ * Fix top x-axis bug |
@@ -22,4 +22,6 @@ import { isDate, isValidDate, textareaToArray } from "../../common"; | ||
let ticks; | ||
const ticks_hidden = axis === "x" ? axis_state.axis_position === "off" : !axis_state.axis_visible; | ||
if (data.string_array) ticks = scale.domain(); | ||
if (ticks_hidden) ticks = []; | ||
else if (data.string_array) ticks = scale.domain(); | ||
else if (axis_state.tick_mode === "number") ticks = scale.ticks(axis_state.tick_number); | ||
@@ -26,0 +28,0 @@ else { |
Sorry, the diff of this file is too big to display
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
413295
10133