Exemplo n.º 1
0
 /// <summary>
 /// Initializes the line chart.
 /// </summary>
 private void Init()
 {
     this.mColors     = new List <int>();
     this.mLineChart  = (LineChart)FindViewById <LineChart>(Resource.Id.linechart);
     this.mCurVisData = CurrentVisualizationData.Instance;
     this.mDataSet    = new ILineDataSet[mCurVisData.Points.Count];
 }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes the widgets and the data to be visualized.
        /// </summary>
        private void Init()
        {
            this.mLvVisualizationData = FindViewById <ListView>(Resource.Id.lvData);
            FillRawDataList();
            mLvVisualizationData.Adapter         = mAdapter;
            mLvVisualizationData.DividerHeight   = 5;
            this.mLvVisualizationData.ItemClick += OnListViewItemClick;

            this.mTvHeaderVisualization = FindViewById <TextView>(Resource.Id.tvHeaderVisualization);
            this.mBtShowChart           = FindViewById <Button>(Resource.Id.btnShowChart);

            // Create font
            var font = Typeface.CreateFromAsset(Assets, "SourceSansPro-Light.ttf");

            mTvHeaderVisualization.Typeface = font;
            mBtShowChart.Typeface           = font;

            this.mBtShowChart.Click += OnShowChart;

            this.mCurVisData                = CurrentVisualizationData.Instance;
            this.mCurVisData.Points         = new Dictionary <string, List <DataPoint> >();
            this.mCurVisData.AltControlTime = new List <float>();
        }