AddArrayGrid: shift between cells borders and grid lines

TeeChart for ActiveX, COM and ASP
Post Reply
ModelTech
Newbie
Newbie
Posts: 28
Joined: Tue Oct 09, 2007 12:00 am

AddArrayGrid: shift between cells borders and grid lines

Post by ModelTech » Wed Dec 05, 2007 8:46 am

Hi,

Thank you Narcís for helping to understand 3Dseries usage.

Now I'm using AddArrayGrid. But there is a little issue about this:
I have array of 6*4 values, but X axis range is 1..5 (and also grid lines figured for 5 (five) cells). But there are 6 (six) cells along X axis.

Code: Select all

 SUB FillChart
    Chart7.Environment.IEPrintWithPage=True
    Chart7.RemoveAllSeries
	Chart7.Legend.CheckBoxes = True
	Chart7.Zoom.Pen.Color = vbBlack
	Chart7.Environment.MouseWheelScroll = False
 
	Chart7.AddSeries(30)
    Chart7.Series(0).Title="Series 1"
    Chart7.Series(0).Clear 
	Chart7.Series(0).asColorGrid.CenteredPoints = True
	Chart7.Series(0).asColorGrid.UseColorRange = False
	Chart7.Series(0).asColorGrid.UsePalette = True 
	Chart7.Series(0).asColorGrid.PaletteStyle = psRainbow
//	Chart7.Series(0).asColorGrid.Pen.Visible = False

	XZArray=Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1)
  
    Chart7.Series(0).asColorGrid.AddArrayGrid 6, 4, XZArray


// Header
    Chart7.Header.Text.Clear()
    Chart7.Header.Text.Add("TEST")
    Chart7.Header.Font.Size=10
    Chart7.Header.Font.Name="Arial"
    Chart7.Header.Font.Bold=true
// Legend
	Chart7.Legend.Visible=True
    Chart7.Panel.Color = RGB(255, 255, 255)
// Axis 
    Chart7.Axis.Left.Title.Caption="Y"
    Chart7.Axis.Left.Labels.Size=30
    Chart7.Axis.Bottom.Labels.Size=30
	Chart7.Aspect.View3D = False
    Chart7.Axis.Bottom.Labels.Style=2
    Chart7.Axis.Bottom.Title.Caption="X"

End Sub  

BTW how can I display Color Palette (ColorScale) instead of Series Legend? I think it is very easy, so I do not want to start new topic for this question :roll:

ModelTech
Newbie
Newbie
Posts: 28
Joined: Tue Oct 09, 2007 12:00 am

Post by ModelTech » Wed Dec 05, 2007 8:55 am

Additional information:

If I zoom this graph (to see for example four cells) then X axis will be OK. And grid lines will coincide with cells borders.

Thanks in advance,
Danila.

ModelTech
Newbie
Newbie
Posts: 28
Joined: Tue Oct 09, 2007 12:00 am

Post by ModelTech » Wed Dec 05, 2007 9:34 am

The question about ColorPalette instead of Legend is closed :)
It is just .Legend.LegendStyle=2 property.

So, the question about GridShift is still actual.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Dec 10, 2007 4:52 pm

Hi Danila,

Thanks for the information. This is certainly a bug (TV52012634) which I have added to our defect list to be fixed as soon as possible.

In the meantime you could use TeeChart Pro v7 ActiveX as it worked fine there.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

ModelTech
Newbie
Newbie
Posts: 28
Joined: Tue Oct 09, 2007 12:00 am

Post by ModelTech » Mon Dec 17, 2007 2:22 pm

Hi, Narcís!

The version 8 of TeeChart is preferable for me.
Please let me know when this bug will be fixed.

Thanks in advance,
Danila.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Dec 17, 2007 2:52 pm

Hi Danila,

For new release announcements please be aware at this forums board or subscribe to our RSS news feed.

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply