Draw XXL documentation


Draw Charts

The DrawCharts class contains some premade charts and pie charts so that drawing charts is as easy as possible. The most easy way of drawing a chart with custom data contains only 2 lines of code. No further initialization is required:
		
    void Update()
    {
        DrawCharts.premadeChart0.AddValue(myDataPointValue); //adding data to the chart
        DrawCharts.premadeChart0.Draw(); //drawing the chart
    }
			
Though if the premade charts are not enough then further charts can be created by declaring and constructing them:
		
    ChartDrawing myChart;

    void Start()
    {
        myChart = new ChartDrawing();
    }

    void Update()
    {
        myChart.AddValue(myDataPointValue); //adding data to the chart
        myChart.Draw(); //drawing the chart
    }			

For further details on the charts itself see the documentation of ChartDrawing and PieChartDrawing.


Premade Charts
Type Member Name
public static ChartDrawing premadeChart0
public static ChartDrawing premadeChart1
public static ChartDrawing premadeChart2
public static ChartDrawing premadeChart3
public static ChartDrawing premadeChart4
public static ChartDrawing premadeChart5
public static ChartDrawing premadeChart6
public static ChartDrawing premadeChart7
public static ChartDrawing premadeChart8
public static ChartDrawing premadeChart9
public static PieChartDrawing premadePieChart0
public static PieChartDrawing premadePieChart1
public static PieChartDrawing premadePieChart2
public static PieChartDrawing premadePieChart3
public static PieChartDrawing premadePieChart4
public static PieChartDrawing premadePieChart5
public static PieChartDrawing premadePieChart6
public static PieChartDrawing premadePieChart7
public static PieChartDrawing premadePieChart8
public static PieChartDrawing premadePieChart9


Layouting utilities for the premade charts

Beside hosting the premade charts the DrawCharts class offers some functionality to layout the group display of these premade charts.
The premade charts get by default drawn around the Scene zero orign. You can change the position for all premade charts at once with positionOfPremadeCharts. You can also group the premade charts to a more dense layout via SetDistanceBetweenNeighboringPremadeChartsToFitCaseOf_noNeedForPointOfInterestTextBoxes or similar functions.
The premade charts try to automatically align themselves to the camera appointed by DrawBasics.cameraForAutomaticOrientation.
Declaration Setting/Function Name
Vector3 positionOfPremadeCharts
int premadeChartThatIsRotationPivot
public static void SetDistanceBetweenNeighboringPremadeChartsTo_customDistance()
public static void SetDistanceBetweenNeighboringPremadeChartsToFitCaseOf_needsPointOfInterestTextBoxesOnBothSides()
public static void SetDistanceBetweenNeighboringPremadeChartsToFitCaseOf_needsPointOfInterestTextBoxesOnOneSide()
public static void SetDistanceBetweenNeighboringPremadeChartsToFitCaseOf_noNeedForPointOfInterestTextBoxes()
public static void SetDistanceBetweenNeighboringPremadeChartsToFitCaseOf_onlyPieCharts()
public static void RevertPremadeChartsToAutomaticPositionLayout()
public static void RevertPremadeLineChartsToAutomaticPositionLayout()
public static void RevertPremadePieChartsToAutomaticPositionLayout()
public static void SetHeight_forAllPremadeLineCharts()
public static void SetSize_forAllPremadeCharts()
public static void SetSizeOfPieCircleDiameter_forAllPremadePieCharts()
public static void SetWidth_forAllPremadeLineCharts()


Other Static Global Settings and Functions
Declaration Setting/Function Name
bool chartInspectorComponentsAutomaticallyProceedOneFrameStepOnPauseStarts_toPreventFrozenOverlayDraw
public static void ClearAllPremadeCharts()
public static void ClearAllPremadeLineCharts()
public static void ClearAllPremadePieCharts()