NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Keith on February 10, 2014, 07:17:35 PM
-
I have a simple graph on a NetWebForm and please excuse this being such a simple (dumb!) question.
The graph has two sets, Power number's and Torque numbers and each directly related to RPM. Some pictures and details are in the attached document.
I can't get the numbers to be plotted in the right places on the graph or maybe the x-axis labels that I have are misplaced. But see the doc for the details and my question.
Thanks for your help
Keith
[attachment deleted by admin]
-
Hi Keith,
You need to fit what you want within the bounds of the graph type you are using.
a) Line graph has a dynamic Y axis, but a discrete X-Axis - the x-Axis contains "point numbers" which are integers starting from 1.
It seems to me you're setting the point number to be RMP/1000, so 1600 becomes 1.6 which is not an integer.
I would probably drop the x 1000 part, and just use the RPM value as the point-number "as is".
cheers
Bruce
-
Thanks Bruce, that helped a lot. The graph looks much better.
Cheers
Keith
-
But, supplementary question: isn't there a way to have the x-axis label unrelated to the points? My current graph is shown in Power.png but the x labels are just the point numbers and therefore are not spread evenly across the axis.
I have included the same sort of graph (as Power2.png) which shows an even x-axis and the actual points not related to the labels. This is what I want to achieve with IG.
Thanks
Keith
[attachment deleted by admin]
-
set
thisgraph.DisplayTo = 7000
(where 7000 is the highest RPM value, rounded up to the next 1000)
cheers
Bruce