mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-20 15:30:09 +00:00
3.0 - tooltip
This commit is contained in:
@@ -55,12 +55,12 @@ namespace XCharts
|
||||
{
|
||||
if (!CanAddChartComponent(type))
|
||||
{
|
||||
throw new InvalidOperationException("DisallowMultipleComponent:" + type.Name);
|
||||
throw new InvalidOperationException("CanAddChartComponent:" + type.Name);
|
||||
}
|
||||
CheckAddRequireChartComponent(type);
|
||||
var component = Activator.CreateInstance(type) as MainComponent;
|
||||
if (component == null)
|
||||
throw new InvalidOperationException("DisallowMultipleComponent:" + type.Name);
|
||||
throw new InvalidOperationException("CanAddChartComponent:" + type.Name);
|
||||
component.SetDefaultValue();
|
||||
if (component is IUpdateRuntimeData)
|
||||
(component as IUpdateRuntimeData).UpdateRuntimeData(chartX, chartY, chartWidth, chartHeight);
|
||||
|
||||
Reference in New Issue
Block a user