Exemplo n.º 1
0
        private void BindData(DateTime startTime, DateTime endTime, string deviceNumber)
        {
            stateControl.ItemsSource = null;
            getData(startTime, endTime, deviceNumber);

            //BarSideSerie.Points.Clear();
            //BarSideSerie.Points.AddRange(lsBarPoint);
            //BarSideSerie.Animate();
            LineSideSerie.Points.Clear();
            LineSideSerie.Points.AddRange(lsLinePoint);
            LineSideSerie.Animate();

            barChart.UpdateData();
        }
Exemplo n.º 2
0
        private void BindData(DateTime startTime, DateTime endTime, string assetNumber)
        {
            getData(startTime, endTime, assetNumber);

            LineSideSerie.Points.Clear();
            LineSideSerie.Points.AddRange(lsLinePoint);
            LineSideSerie.Animate();

            pieSerie.Points.Clear();
            pieSerie.Points.AddRange(lsPiePoint);
            pieSerie.Animate();

            barChart.UpdateData();
            pieChart.UpdateData();
        }