【发布时间】:2016-06-30 07:39:49
【问题描述】:
我使用 react-d3 获得了基本的 D3 折线图,但我可以看到任何为添加工具提示外观而编写的源代码。有人对 React 平台中的工具提示显示有想法吗?
我也尝试过 react-d3-tooltip,但在尝试绘图时出错。这是我使用 react 工具提示模块的实现:
<LineTooltip
data={data}
colors={colorScale}
width={width}
height={height}
yAxisLabel="FARE"
xAxisLabel="FARE"
chartSeries= {dataSeries}
viewBoxObject=
{{
x: 0,
y: 0,
width: 850,
height: 400
}}
legend={true}
x={x}
y={y}
xScale= {x}
yScale= {y}
gridHorizontal={true}
gridVertical={true}
gridVerticalStrokeDash={'2, 2'}
gridHorizontalStrokeDash={'2, 3'}>
【问题讨论】: