Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Creating Label Aliases for Y Axis Values
JBranigan
Hi,
I'm new to using the BIRT APIs and am having some trouble. I have a dataset with time series information. The values in the series are assigned numeric representations of what is to the user a set of logical states.
Example {0=OK, 1=BAD, 2=SENSOR READ ERROR, etc...}
Right now, I'm plotting the data with the x-axis as the time series and the Y axis as the numeric values. I'd really like to change the labels on the Y axis to show the aliased strings that the end user understands(OK,BAD,SENSOR READ ERROR, etc...} instead of 0,1,2...
I've done quite a lot of experimenting, web searching and have looked in the BIRT books that I have, but haven't found a code snippet to allow this to happen.
My questions are: Is what I'm trying to do possible, and if so what is the snippet of code to associate a label with a particular value in a series.
Thanks in advance for the help,
James
Find more posts tagged with
Comments
Virgil Dodson
Hi James,
You could look into creating a Computed Column for your Data Set that is an expression. You could also put the data onto a Table on the report, then use the Mapping feature of the table.
JBranigan
Virgil,
I'm using the Charting APIs directly. What I'm looking for is a way to programmatically cause a chart to show the labels on the Y-axis instead of their numerical values. I'm not using a standard data source and I'm not using any of the report designer tooling. I'm just trying to accomplish this from code.
Thanks,
James