Example #1
0
        // Evento que modifica el color de la barra cuando haces "click"
        public void Chart_ClickSeries(object sender, Series s, int valueIndex, Steema.TeeChart.Drawing.MouseEventArgs e)
        {
            // Ja es pot treure - if!= null <!-----------------------------------------------!>
            if (BaseChart.Chart.Title.Text == "Civil status of people in the bus")
            {
                ClearColorBar();

                /*
                 * int index = BaseChart.Chart.Series.IndexOf(s);
                 * for (int i = 0; i < s.Count; i++) { s[i].Color = var.GetPaletteBasic[index].AddLuminosity(-0.25); }
                 */
                var Serie = BaseChart.Chart.Series[BaseChart.Chart.Series.IndexOf(s)];
                Bar bar   = (Bar)Serie;
                bar.Pen.Color = bar.Color.AddLuminosity(-0.3);
                bar.Pen.Width = 3;
            }
        }
Example #2
0
        public void Chart_ClickSeries(object sender, Series s, int valueIndex, Steema.TeeChart.Drawing.MouseEventArgs e)
        {
            if (BaseChart.Chart.Title.Text == BaseChart.Chart.Title.Text)
            {
                if (lastValueIndex != valueIndex)
                {
                    BaseChart.Chart.Footer.Visible = true;

                    ClearColorBar(valueIndex, s);

                    var Serie = BaseChart.Chart.Series[BaseChart.Chart.Series.IndexOf(s)];
                    Bar bar   = (Bar)Serie;
                    bar[valueIndex].Color = bar[valueIndex].Color.AddLuminosity(-0.2);

                    BaseChart.Chart.Footer.Text = "Year: " + bar[valueIndex].Label + " | Items sale: " + bar[valueIndex].Y;
                    lastValueIndex = valueIndex;
                }
                else
                {
                    ClearColorBar(valueIndex, s); BaseChart.Chart.Footer.Visible = false; lastValueIndex = -1;
                }
            }
        }
Example #3
0
 private void TChart1_ClickBackground(object sender, Steema.TeeChart.Drawing.MouseEventArgs e)
 {
     chartView.Chart.Header.Text = "Chart Tapped";
 }
Example #4
0
 private void Chart_ClickSeries(object sender, Steema.TeeChart.Styles.Series s, int valueIndex, Steema.TeeChart.Drawing.MouseEventArgs e)
 {
     ann.Active = true;
     ann.Text   = pie.PieValues.Value[valueIndex].ToString();
     ann.Left   = e.X - ann.Width / 2;
     ann.Top    = e.Y - 20;
 }
 private void ClickAnnotation_Click(object sender, Steema.TeeChart.Drawing.MouseEventArgs e)
 {
     (chart1.Chart.Tools[0] as Steema.TeeChart.Tools.Annotation).Text = "Clicked!!";
 }
Example #6
0
 private void TChart1_ClickSeries(object sender, Steema.TeeChart.Styles.Series s, int valueIndex, Steema.TeeChart.Drawing.MouseEventArgs e)
 {
 }