473,382 Members | 1,349 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

MSChart??

Hi All

Thanks for the help n the decoding, made sense after I read it a few times.
I am now graphing the data with the simple code below, which works fine but
my format is all wrong.
How do you format the number into "General Number"? I know its possible
because I can do it in excel and its the same control.

Private Sub Draw_Graph()
'************************************************
' PURPOSE :- To draw the graph
' INPUTS :-
' OUTPUTS :-
'************************************************

ReDim GraphData(Graph_Data_Max(0), 2)
For X = 1 To Graph_Data_Max(0)
GraphData(X, 1) = 1
GraphData(X, 2) = Graph_AVG_Strokes(X)
Next

ChartData.ChartData = GraphData

ChartData.Plot.Axis(VtChAxisIdX).ValueScale.MajorD ivision = 200
ChartData.Plot.Axis(VtChAxisIdX).ValueScale.MinorD ivision = 50
ChartData.Plot.Axis(VtChAxisIdX).ValueScale.Minimu m = 0

'I need to format the numbers here some where

ChartData.Plot.Axis(VtChAxisIdX).Tick.Style = VtChAxisTickStyleNone

End Sub
--
Regards
Dillon Mantle
Jul 17 '05 #1
3 6317
You can use the format statement to format your numbers...

Result = Format(YourVariable, "#,###,###,##0.00")

There's probably a term you put in the 2nd parameter for regular number, I
just don't remember it off hand but this example will format your number as
1,000.00 for example.

--
Stéphane Richard

"Dillon Mantle" <di*****@dasolutions.co.za> wrote in message
news:dL********************@is.co.za...
Hi All

Thanks for the help n the decoding, made sense after I read it a few times. I am now graphing the data with the simple code below, which works fine but my format is all wrong.
How do you format the number into "General Number"? I know its possible
because I can do it in excel and its the same control.

Private Sub Draw_Graph()
'************************************************
' PURPOSE :- To draw the graph
' INPUTS :-
' OUTPUTS :-
'************************************************

ReDim GraphData(Graph_Data_Max(0), 2)
For X = 1 To Graph_Data_Max(0)
GraphData(X, 1) = 1
GraphData(X, 2) = Graph_AVG_Strokes(X)
Next

ChartData.ChartData = GraphData

ChartData.Plot.Axis(VtChAxisIdX).ValueScale.MajorD ivision = 200
ChartData.Plot.Axis(VtChAxisIdX).ValueScale.MinorD ivision = 50
ChartData.Plot.Axis(VtChAxisIdX).ValueScale.Minimu m = 0

'I need to format the numbers here some where

ChartData.Plot.Axis(VtChAxisIdX).Tick.Style = VtChAxisTickStyleNone

End Sub
--
Regards
Dillon Mantle

Jul 17 '05 #2
> You can use the format statement to format your numbers...

Result = Format(YourVariable, "#,###,###,##0.00")
Too many #-signs.... just use Format(YourNumber, "#,##0.00")

There's probably a term you put in the 2nd parameter for
regular number, I just don't remember it off hand


There is... Format(2000#, "General Number"), but that "general number" is
one with no thousands separator.
Rick - MVP
Jul 17 '05 #3
Or just FormatNumber() and specify the number of decimals desired.

--

Randy Birch
MVP Visual Basic
http://vbnet.mvps.org/
Please respond only to the newsgroups so all can benefit.

There's no place like 127.0.0.1
"Rick Rothstein" <ri************@NOSPAMcomcast.net> wrote in message
news:zo********************@comcast.com...
: > You can use the format statement to format your numbers...
: >
: > Result = Format(YourVariable, "#,###,###,##0.00")
:
: Too many #-signs.... just use Format(YourNumber, "#,##0.00")
:
:
: > There's probably a term you put in the 2nd parameter for
: > regular number, I just don't remember it off hand
:
: There is... Format(2000#, "General Number"), but that "general number" is
: one with no thousands separator.
:
:
: Rick - MVP
:
:
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Gerhard Swart | last post by:
Good Morning, I have a licensed .Net product. Meaning I can develop and deploy my projects. I want to use MSChart in my latest project. Now I am not sure about the licensing of MSChart. As far...
1
by: arc | last post by:
My web application is using MSChart for reporting. (until i port it to some decent reporting tool) How to make sure all the web clients (IE atleast) have MSChart on their system to view these...
1
by: Jaime Lucci | last post by:
Has anybody any documentation about MSChart? Thanks.
5
by: Richard | last post by:
I don't know any thing about c#, I really need to do this in visual c++. I don't manually wrap the dll but since it's called AxInterop.OWC10.dll I assume visual studio has done that for me. ...
0
by: Richard | last post by:
When I try adding a MSChart control from the toolbox I get an error message telling me it can't find AxInterop.OWC10.dll. I was given the advice below but i'm not sure where to add the class...
1
by: wayne | last post by:
hi, i understand that i m able to use mschart to plot a line graph. i got list of values (jus one column) to b plotted into a line graph. how ca i do it using mschart in visual c++?? thanks...
2
by: John Blair | last post by:
Hi, In my webform HTML i have the following code, but i cannot view and configure this chart control in the code behind class. In the code behind class i have a reference to this com control...
1
by: M Murschell | last post by:
In VB.Net, I have a DataSet called DataSet11, with some data that I want to chart. It has two fields, Month and EmployeeCount. I added a MSChart (Microsoft Chart Control 6.0). How do I get the...
0
by: clashway | last post by:
It took me so long to figure this out, I thought I would share it. This prints an MSChart using the metafilepict format after copying the chart to the clipboard. This provides a high-resolution...
0
by: JS | last post by:
Hello I want translate a project from VB6 to VB.Net 1.0 In this project I have a graph with a MsChart COM control. When I want make reference (Projet/Ref /Com controle) to this chart I have an...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.