示例#1
0
        private void uiSymbolButton2_Click(object sender, System.EventArgs e)
        {
            Random random = new Random(DateTime.Now.Millisecond);

            DoughnutChart.Update("StarCount", "2020-05-19", random.Next(50));
            DoughnutChart.Update("StarCount", "2020-05-20", random.Next(50));
            DoughnutChart.Update("StarCount", "2020-05-21", random.Next(50));
            DoughnutChart.Update("StarCount", "2020-05-22", random.Next(50));
            DoughnutChart.Update("StarCount", "2020-05-23", random.Next(50));
            DoughnutChart.Update("StarCount", "2020-05-24", random.Next(50));
            DoughnutChart.Update("StarCount", "2020-05-25", random.Next(50));

            DoughnutChart.Refresh();
        }
示例#2
0
 private void ToggleCircle()
 {
     IsCricle = !IsCricle;
     DoughnutChart?.SetAngle(IsCricle ? 360 : 0);
     DoughnutChart?.Update("setAngle");
 }
 private async Task ToggleCircle()
 {
     IsCircle = !IsCircle;
     Angle    = IsCircle ? 360 : 0;
     await DoughnutChart.Update(ChartAction.SetAngle);
 }