Skip to content

Commit 4d821e3

Browse files
authored
Merge pull request #5187 from plotly/improve-period-labels
improve labels on axes with rangebreaks
2 parents dadcd06 + d61dee5 commit 4d821e3

22 files changed

+253
-223
lines changed

src/plots/cartesian/axes.js

+192-172
Large diffs are not rendered by default.
Loading
6.43 KB
Loading
-537 Bytes
Loading
Loading
-15.5 KB
Loading
-1.05 KB
Loading
Loading
-497 Bytes
Loading
-3.93 KB
Loading
Loading
Loading

test/image/baselines/axes_breaks.png

80 Bytes
Loading
Loading
365 Bytes
Loading
-123 Bytes
Loading

test/image/mocks/axes_breaks-contour1d.json

+1
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,7 @@
856856
"text": "1D-z-array contour with rangebreaks"
857857
},
858858
"xaxis": {
859+
"dtick": 1800000,
859860
"rangebreaks": [
860861
{
861862
"pattern": "hour",

test/image/mocks/axes_breaks-contour2d.json

+1
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@
128128
"text": "2D-z-array contour with rangebreaks"
129129
},
130130
"xaxis": {
131+
"dtick": 1800000,
131132
"rangebreaks": [
132133
{
133134
"pattern": "hour",

test/image/mocks/axes_breaks-heatmap1d.json

+1
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,7 @@
856856
"text": "1D-z-array heatmap with rangebreaks"
857857
},
858858
"xaxis": {
859+
"dtick": 1800000,
859860
"rangebreaks": [
860861
{
861862
"pattern": "hour",

test/image/mocks/axes_breaks-heatmap2d.json

+1
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@
128128
"text": "2D-z-array heatmap with rangebreaks"
129129
},
130130
"xaxis": {
131+
"dtick": 1800000,
131132
"rangebreaks": [
132133
{
133134
"pattern": "hour",

test/image/mocks/axes_breaks-histogram2d.json

+1
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@
482482
"2020-01-02 16:55",
483483
"2020-01-03 09:55"
484484
],
485+
"dtick": 1800000,
485486
"rangebreaks": [{
486487
"pattern": "hour",
487488
"bounds": [18, 9]

test/jasmine/tests/axes_test.js

+56-51
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)