Exemple #1
0
    ///<summary>sets default values. For when all category values = 0</summary>
    void SetEmptyDefaultValues()
    {
        List <float> emptyValues = MathScientific.RepeatedList(0.1f, graph.sliceLabels.Count);

        graph.sliceValues.SetList(emptyValues);
        emptyDefaultValuesOn = true;
    }
Exemple #2
0
    ///<summary>sets all values to zero and sets given value. Called when first value added.</summary>
    void SetInitialValues(int index, float firstValue)
    {
        List <float> initialValues = MathScientific.RepeatedList(0f, graph.sliceLabels.Count);

        initialValues[index] = firstValue;
        graph.sliceValues.SetList(initialValues);
        emptyDefaultValuesOn = false;
    }