eMultiBar

TeeChart for ActiveX, COM and ASP
Post Reply
Rousseau
Newbie
Newbie
Posts: 31
Joined: Fri Oct 13, 2006 12:00 am
Location: St-Jean-Port-Joli, Canada
Contact:

eMultiBar

Post by Rousseau » Wed Oct 21, 2009 5:35 pm

Hi,
I don't know if it's possible, but I would like to have two different eMultiBar (two Series Side by Side and two Series Side by Side but in front on two last series) ?


Thank You

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: eMultiBar

Post by Yeray » Thu Oct 22, 2009 11:01 am

Hi Rousseau,

I'm afraid that's not possible right now. I've added it to the wish list to be implemented in future releases (TV52014506).
In the meanwhile, I've found that using a subcharttool you could get something that you may consider acceptable:

Code: Select all

uses series, TeeSubChart, Math;

procedure TForm1.FormCreate(Sender: TObject);
var i, j: Integer;
    SubChart: TSubChartTool;
    Chart2: TChart;
begin
  SubChart := Chart1.Tools.Add(TSubChartTool.Create(self)) as TSubChartTool;
  Chart2 := SubChart.Charts.AddChart();
  Chart2.Parent:=SubChart.ParentChart;
  Chart1.Legend.Visible := false;
  Chart2.Axes.Visible := false;

  for i:=0 to 1 do
  begin
    Chart1.AddSeries(TBarSeries.Create(self));
    Chart2.AddSeries(TBarSeries.Create(self));
    for j:=0 to 4 do
    begin
      Chart1[i].Add(Round(random*50+75));
      Chart2[i].Add(Round(random*50+25));
      Chart1[i].Marks.Visible := false;
      Chart2[i].Marks.Visible := false;
    end;
  end;

  Chart1.Draw;
  Chart2.CustomChartRect := true;
  Chart2.ChartRect := Chart1.ChartRect;
  Chart2.Draw;
  Chart2.Axes.Left.AutomaticMaximum := false;
  Chart1.Axes.Left.AutomaticMaximum := false;
  Chart2.Axes.Left.Maximum := Max(Chart1.Axes.Left.Maximum,Chart2.Axes.Left.Maximum);
  Chart1.Axes.Left.Maximum := Chart2.Axes.Left.Maximum;
end;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Rousseau
Newbie
Newbie
Posts: 31
Joined: Fri Oct 13, 2006 12:00 am
Location: St-Jean-Port-Joli, Canada
Contact:

Re: eMultiBar

Post by Rousseau » Thu Oct 22, 2009 1:55 pm

Hi,

Thanks for your answer but I'm not familiar with that it seem be C#. Have you two Chart ? I can't find TSubChartTool in the help, what is it ?

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: eMultiBar

Post by Yeray » Thu Oct 22, 2009 2:47 pm

Hi Rousseau,

Excuse me, this tool is not enough functional in ActiveX to allow the viability of this workaround. The problem is that this tool is accessible at design time but its specific properties (asSubChart) aren't still accessible at runtime and this is essential to use it for the suggested workaround. This is a known problem already in the wish list and I've just incremented its priority.

SubChart tool allows you to create a new chart inside a created chart. You can see it at the demo at What's New ?\Welcome !\New Chart Tools\SubCharts
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Rousseau
Newbie
Newbie
Posts: 31
Joined: Fri Oct 13, 2006 12:00 am
Location: St-Jean-Port-Joli, Canada
Contact:

Re: eMultiBar

Post by Rousseau » Thu Oct 22, 2009 2:49 pm

Ok Thank you.....

Post Reply