Q1431051. Timing issue when using Locale property with images
The information on this article applies toSummary
This article explains the proper way to set the locale property when generating images through ASP script.
Description
Because of a timing issue with ChartFX Internet 5.5 it is necessary to set the locale property first and then set the format property when generating images.
The following lines of code will work when using the Client Side ActiveX but will not work when generating images.
<!-- #include virtual="/Include/CfxIE.inc" -->
<%
Set chart = Server.CreateObject("ChartFX.WebServer")
Chart.OpenDataEx COD_VALUES,1,4
Chart.ValueEx(0,0) = 1215
Chart.ValueEx(0,1) = 690
Chart.ValueEx(0,2) = 1412
Chart.ValueEx(0,3) = 1104
Chart.CloseData COD_VALUES
Chart.Axis(AXIS_Y).Format = AF_CURRENCY
Chart.Axis(AXIS_Y).Locale = 2057 'Locale for United Kingdom
%>
<%= chart.GetHtmlTag(500,350,"image") %>
If you switch the last two property settings then it will work for both images and for ActiveX
<!-- #include virtual="/Include/CfxIE.inc" -->
<%
Set chart = Server.CreateObject("ChartFX.WebServer")
Chart.OpenDataEx COD_VALUES,1,4
Chart.ValueEx(0,0) = 1215
Chart.ValueEx(0,1) = 690
Chart.ValueEx(0,2) = 1412
Chart.ValueEx(0,3) = 1104
Chart.CloseData COD_VALUES
Chart.Axis(AXIS_Y).Locale = 2057 'Locale for United Kingdom
Chart.Axis(AXIS_Y).Format = AF_CURRENCY
%>
<%= chart.GetHtmlTag(500,350,"image") %>
Related Articles Q1432074 Euro Symbol in SVG charts
Q1432076 Locale (French) incorrect for Percentage Axis
ArticleID :Q1431051
Keywords :locale;Server; ASP
Reviewed :7/22/2002 5:29:00 PM
DISCLAIMER INFORMATION :
Information in this document is subject to change without notice and does not represent a
commitment on the part of Software FX, Inc. The software, which includes the information
contained in any databases, described in this document is furnished under a license
agreement or nondisclosure agreement. The software may be used or copied only in
accordance with the terms of those agreements. It is against the law to copy the software
on any medium except as copy of the software for backup purposes. No part of this article
may be reproduced or transmitted in any form or by any means including recording, or
information storage and retrieval systems, for any purpose other than the purchaser's
personal use, without the express written permission of Software FX, Inc.
Software FX, Inc. disclaim all warranties, either express or
implied, including but not limited to implied warranties of merchantability and fitness
for a particular purpose, with respect to the instructions contained in this article.
In no event shall Software FX, Inc. be
liable for any damages whatsoever including, without limitation, damages for loss of
business profits, business interruption, loss of business information, or other pecuniary
loss, even if Software FX, Inc. has been advised of the possibility of such damages.
Because some states do not allow the exclusion or limitation of liability for
consequential or incidental damages, the above limitation may not apply to you.