473,327 Members | 2,055 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,327 software developers and data experts.

MSChart and JavaScript

I can't seem to set the "MSChart1.ChartData = myArr;" value using
JavaScript. It says "Bad Argument".

I've tried setting myArr two ways. 1. var myArr = [1,2,3,4,5]; and 2.
var x = [1,2,3,4,5]; var myArr = [x];. Both produce the same error.
I can set the chart by doing "MSChart1.Row = row;" "MSChart1.Column =
col;" "MSChart1.Data = 3;". However, I have about a 200 points and
doing it this way takes the Chart about 20 seconds (it draws to the
chart after each point is set). I suspect the "MSChart1.ChartData =
myArr;" would be faster in this respect.

Another possbile solution, anyone know how to tell MSChart1 to not
draw while I set all the points (Then I can just do an
"MSChart1.Refresh();" when I'm done setting points.

Thanks

NB
Jan 4 '08 #1
1 3261
On Jan 4, 12:26*pm, NvrBst <nvr...@gmail.comwrote:
I can't seem to set the "MSChart1.ChartData = myArr;" value using
JavaScript. *It says "Bad Argument".

I've tried setting myArr two ways. *1. var myArr = [1,2,3,4,5]; and 2.
var x = [1,2,3,4,5]; var myArr = [x];. *Both produce the same error.

I can set the chart by doing "MSChart1.Row = row;" "MSChart1.Column =
col;" "MSChart1.Data = 3;". *However, I have about a 200 points and
doing it this way takes the Chart about 20 seconds (it draws to the
chart after each point is set). *I suspect the "MSChart1.ChartData =
myArr;" would be faster in this respect.

Another possbile solution, anyone know how to tell MSChart1 to not
draw while I set all the points (Then I can just do an
"MSChart1.Refresh();" when I'm done setting points.

Thanks

NB
I found the "MSChart1.Redraw = bool" property. By wrapping my code in
that it cuts the inital loading from 20 seconds to about 9 seconds.
Updating is pretty instant but with a small flicker which isn't a
problem for me.

Thanks NB
Jan 4 '08 #2

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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.