Commit 0581ef5
Fix #2446: Date class preserved in colorbar trace
The colorbar trace now preserves Date/POSIXct classes when computing
x/y ranges. Previously, unlist() converted Date objects to numeric
(days since epoch), which could confuse plotly.js axis handling.
Changed to use do.call(c, ...) which preserves the original class.
Fixes #2446
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 4be6198 commit 0581ef5
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
877 | 877 | | |
878 | 878 | | |
879 | 879 | | |
| 880 | + | |
880 | 881 | | |
881 | | - | |
882 | | - | |
| 882 | + | |
| 883 | + | |
883 | 884 | | |
884 | 885 | | |
885 | 886 | | |
| |||
890 | 891 | | |
891 | 892 | | |
892 | 893 | | |
893 | | - | |
| 894 | + | |
894 | 895 | | |
895 | 896 | | |
896 | 897 | | |
| |||
0 commit comments