on 06-04-2007 9:08 PM
I am working on a generic iChart that is based off a user manager report engine. There are more details to it but I want my stacked bar chart to generate its Pen Colors based on the managementdynamically based on what it was assigned. The following abbreviate URL (I have removed some querystring parameters to keep it short) is the source of the image.
Lighthammer/ChartServlet?Content-Type=image/gif&PenColor.1=#0000B2&PenColor.2=#00B200&PenColor.3=#FFFF00&PenColor.4=#B20000
The issue is the PenColor parameters. The colors aren't displayed even though I specified the colors in order of "Blue, Green, Yellow, Red". The only pen color overriden from the display template is the first one --- and that isnt even right, it comes out as Black.
Any thoughts?
Can you change your URL to be something like this:
...&p1=0000B2&p2=00B200...
Then in your applet params do this:
<param name="PenColor.1" value="#{p1}">
<param name="PenColor.2" value="#{p2}">
I know you are using the ChartServlet, but...
Also, I've found that certain web-safe or named colors work. For instance "red", "yellow", etc.
So you could possibly do:
...&PenColor.1=red&PenColor.2=yellow...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't think it will like the hashes in the URL. I'm not sure you need them either as part of the PenColor property.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.