mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-20 07:20:08 +00:00
3.0 - guage chart
This commit is contained in:
@@ -474,6 +474,12 @@ namespace XCharts
|
||||
else return serie.areaStyle;
|
||||
}
|
||||
|
||||
public static TitleStyle GetTitleStyle(Serie serie, SerieData serieData)
|
||||
{
|
||||
if (serieData != null && serieData.titleStyle != null) return serieData.titleStyle;
|
||||
else return serie.titleStyle;
|
||||
}
|
||||
|
||||
public static Color32 GetAreaColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, bool highlight)
|
||||
{
|
||||
Color32 color = ChartConst.clearColor32;
|
||||
|
||||
@@ -150,7 +150,7 @@ namespace XCharts
|
||||
serieData.context.labelPosition = serie.context.center;
|
||||
break;
|
||||
case LabelStyle.Position.Inside:
|
||||
var labelRadius = offsetRadius + insideRadius + (outsideRadius - insideRadius) / 2 + serieLabel.margin;
|
||||
var labelRadius = offsetRadius + insideRadius + (outsideRadius - insideRadius) / 2 + serieLabel.distance;
|
||||
var labelCenter = new Vector2(serie.context.center.x + labelRadius * Mathf.Sin(currRad),
|
||||
serie.context.center.y + labelRadius * Mathf.Cos(currRad));
|
||||
serieData.context.labelPosition = labelCenter;
|
||||
|
||||
Reference in New Issue
Block a user