User (Legacy) Posted October 18, 2004 Report Share Posted October 18, 2004 Hi I'm having difficulties figuring out why chartfx insists on displaying decimalvalues with "." as decimal-separator, and the dataoutput from the database and webserver (db -> calculus -> output) is using ",". The numbers that are retrieved from the database use "," and seems to be incompatible with chartfx and therefore (i assume) the values are not presented. So, the question is, how do I check (and change) which decimalsettings apply to chartfx on the webserver? Regards Torben Brenden Pedersen Link to comment Share on other sites More sharing options...
Software FX Posted October 18, 2004 Report Share Posted October 18, 2004 When coming from the database, numeric fields don't have neither "," or "." they are just numbers. The "," or "." is use LATER when the numbers are displayed as strings of text either in your Axis or somewhere else in the chart. So I do not understand what you mean by " The numbers that are retrieved from the database use "," " . Are these numbers stored in String fields ? -- FP Software FX Link to comment Share on other sites More sharing options...
User (Legacy) Posted October 18, 2004 Author Report Share Posted October 18, 2004 "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:CtgZigUtEHA.3560@webserver3.softwarefx.com... > When coming from the database, numeric fields don't have neither "," or > "." they are just numbers. The "," or "." is use LATER when the numbers > are displayed as strings of text either in your Axis or somewhere else in > the chart. > > So I do not understand what you mean by " The numbers that are retrieved > from the database use "," " . > > Are these numbers stored in String fields ? > No, the numbers causing the headache are in fact results of calculus (based on integers, either retrieved or counted, all depending) in asp/vbscript, numbers that have the format nnn,nn and not nnn.nn. This puzzels me, because these results are displayed (we do both) ok in an html table, but chartfx will not display them. ChartFX also fails if I try to set an Axis step to "0,5", but not to "0.5". So something is causing ChartFX to wanting "." instead of ",". > -- > FP > Software FX > Regards Torben Brenden Pedersen Link to comment Share on other sites More sharing options...
Software FX Posted October 19, 2004 Report Share Posted October 19, 2004 So how are you passing these numbers from your script to the chart. I need to see the code you are using. The Step property is a NUMERIC property, it does not know anything about formatting. It makes no difference between 0,5 or .05 because it receives neither, it receives the floating point representation of 0.5 not the string. I think the problem here is that you are trying to pass strings to numeric properties, ASP will try to translate these to numbers BEFORE passing them to us but it can only convert 0.5. Try this: use the SAME variable being pass to Step, and add something to it, then display it. What do you get ? html table, etc. are composed by strings, not numbers, so there is no problem here. -- FP Software FX Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.