mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-21 07:50:16 +00:00
增加Tooltip的Auto自动设置显示类型和触发类型
This commit is contained in:
@@ -11,11 +11,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
protected override void DefaultChart()
|
||||
{
|
||||
AddChartComponentWhenNoExist<GridCoord>();
|
||||
|
||||
var tooltip = EnsureChartComponent<Tooltip>();
|
||||
tooltip.type = Tooltip.Type.None;
|
||||
tooltip.trigger = Tooltip.Trigger.Item;
|
||||
EnsureChartComponent<GridCoord>();
|
||||
|
||||
var xAxis = EnsureChartComponent<XAxis>();
|
||||
xAxis.type = Axis.AxisType.Value;
|
||||
|
||||
Reference in New Issue
Block a user