Commit 1febd38
committed
feat(layer): add zIndex to ChartSpec for controlling layer render order
Layers in a LayerSpec now respect an optional zIndex property that controls
paint order independent of axis assignment. Default behavior is unchanged
(layers render in array order, later layers paint on top). Axis assignment
(left/right y) is always determined by array position, not zIndex.1 parent b3f2bd2 commit 1febd38
2 files changed
Lines changed: 25 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
875 | 875 | | |
876 | 876 | | |
877 | 877 | | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
878 | 885 | | |
879 | 886 | | |
880 | 887 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
503 | | - | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
504 | 512 | | |
505 | 513 | | |
506 | 514 | | |
| |||
821 | 829 | | |
822 | 830 | | |
823 | 831 | | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
824 | 840 | | |
825 | 841 | | |
826 | 842 | | |
827 | 843 | | |
828 | 844 | | |
829 | 845 | | |
830 | 846 | | |
831 | | - | |
| 847 | + | |
832 | 848 | | |
833 | 849 | | |
834 | 850 | | |
| |||
0 commit comments