【发布时间】:2017-05-11 11:34:54
【问题描述】:
我想将 kendo UI 图表中的工具提示放置在绘图区域的自定义位置上。通过使用 kendo-chart-tooltip 填充属性,它只影响工具提示的内部内容,请参阅plunker。 我想通过在 plotAreaHover 事件上设置工具提示相对于图表的位置,可以帮助我吗? here is an image of what I need
<kendo-chart [categoryAxis]="{ categories: categories }" (plotAreaHover)="onPlotAreaHover($event)">
<kendo-chart-title text="GDP annual %"></kendo-chart-title>
<kendo-chart-legend position="bottom" orientation="horizontal"></kendo-chart-legend>
<kendo-chart-tooltip [shared]="true" format="{0}%" [padding]="tooltipPadding"></kendo-chart-tooltip>
<kendo-chart-series>
<kendo-chart-series-item *ngFor="let item of series"
type="line" style="smooth" [data]="item.data" [name]="item.name">
</kendo-chart-series-item>
</kendo-chart-series>
</kendo-chart>
【问题讨论】:
标签: angular kendo-ui kendo-chart