Welcome Guest Search | Active Topics | Members

Flash Chart - Changing the font Options
toddclifton
Posted: Tuesday, May 18, 2004 11:26:00 AM
Rank: Member
Groups: Member

Joined: 5/4/2004
Posts: 2
Points: 0
Please provide sample code on how to change the font type and height in vb.net. I do not use code-behind. Everything is on the page.

For example,

Code:
Dim chart As New Aurigma.Charting.FlashChart()
chart.Legend.Enabled = false
chart.View.HorizontalAxis.Labels.Enabled = false


I do all my coding on the page. I can find no examples on how to change the properties on the Flash Charts.

The example charts Aurigma provides do not cover very much. Please provide a resource with all the options so I don't have to guess as to what works and what doesn't. For example what are the different parameters for the functions? Providing the type of parameter is all that the documentation provides - this doesn't help if I don't know what the options are.
Andrew
Posted: Tuesday, May 18, 2004 8:26:00 PM

Rank: Advanced Member
Groups: Administration , Member

Joined: 8/2/2003
Posts: 709
Points: 108
> Please provide sample code on how to change the font type and height in vb.net. I do not use code-behind. Everything is on the page.


FlashChart has several elements where you can change font settings: labels, heading, and legend. Here is a code sample:

Code:
Dim chart As New Aurigma.Charting.FlashChart()

' ... fill chart with data

' Heading font
chart.Heading.Font.Name = "Times New Roman"
chart.Heading.Font.Height = 22

' Legend font
chart.Legend.Font.Name = "Arial"
chart.Legend.Font.Height = 16

'Labels font
chart.View.HorizontalAxis.Labels.Font.Name = "Verdana"
chart.View.HorizontalAxis.Labels.Font.Height = 18
chart.View.VerticalAxis.Labels.Font.Name = "Verdana"
chart.View.VerticalAxis.Labels.Font.Height = 18

' See [url=http://www.aurigma.com/Support/Help/FlashChart/UsingChartfromASPNET.htm]this sample[/url] for more details about displaying charts
' from pure aspx pages
Response.ContentType = "application/x-shockwave-flash"

Response.Clear
chart.Save(Response.OutputStream)
Response.End


> I do all my coding on the page. I can find no examples on how to change the properties on the Flash Charts.


What do you mean? Changing properties in FlashChart is the same as changing properties anywhere else.

> The example charts Aurigma provides do not cover very much. Please provide a resource with all the options so I don't have to guess as to what works and what doesn't. For example what are the different parameters for the functions? Providing the type of parameter is all that the documentation provides - this doesn't help if I don't know what the options are.


Please check class reference.

Sincerely yours,
Andrew Simontsev from Aurigma Team
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.