in packages/showcase/color/line-chart-many-colors.js [42:60]
export default function Example() {
return (
<XYPlot
width={300}
height={300}
colorType="linear"
colorDomain={[0, 9]}
colorRange={['yellow', 'orange']}
>
<HorizontalGridLines />
<VerticalGridLines />
<XAxis />
<YAxis />
{data.map(({key, ...props}) => (
<LineSeries key={key} {...props} />
))}
</XYPlot>
);
}