fix bug
This commit is contained in:
parent
75f20f5c47
commit
807793982a
@ -11,10 +11,13 @@ function Legend({ style }) {
|
|||||||
<div className="legend-title">温度异常(℃)</div>
|
<div className="legend-title">温度异常(℃)</div>
|
||||||
<div
|
<div
|
||||||
className="colorbar"
|
className="colorbar"
|
||||||
style={{ background: "linear-gradient(to right,#000083,#fff,#830000)" }}
|
style={{ background: "linear-gradient(to right,#4160ac,#fff,#ee2e30)" }}
|
||||||
></div>
|
></div>
|
||||||
<div className="legend-text">
|
<div className="legend-text">
|
||||||
{[-1, -0.5, 0, 0.5, 1].map((item, index) => {
|
{[
|
||||||
|
-0.7, -0.6, -0.5, -0.4, -0.3, -0.2, -0.1, 0, 0.1, 0.2, 0.3, 0.4, 0.5,
|
||||||
|
0.6, 0.7,
|
||||||
|
].map((item, index) => {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
key={`legend-text-item-${index}`}
|
key={`legend-text-item-${index}`}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user