****How to set Legend color of choice for a specific Legends type.***
1. Smart GWT version:-
v9.0p_2013-08-25/PowerEdition Deployment (built 2013-08-25)
2. Problem statement:
I want the color of city Type-"Country" to be Red, "Town" as Green and "Urban" as Blue and so on. I can have several records having one of these types as either Country or Town or Urban.
In the attached sample code only two legends are there Town(Red) and Country(Green). The COLORS array contains {Red,Green}. The red color ties up with the legend type (Country or Town) whichever comes first in the Bar data records. The legend color ties up with the "type" as and when the city Type comes in the Bar data records.
If the first record contains type as "Country" then the Red color legend is for "Country" type and if the first record contains type as "Town" then the Red color legend is for "Town" type .
How can I set the specific Legend color for a specific city Type irrespective of the order in which the city Type is present in the Bar Data records?
1. Smart GWT version:-
v9.0p_2013-08-25/PowerEdition Deployment (built 2013-08-25)
2. Problem statement:
I want the color of city Type-"Country" to be Red, "Town" as Green and "Urban" as Blue and so on. I can have several records having one of these types as either Country or Town or Urban.
In the attached sample code only two legends are there Town(Red) and Country(Green). The COLORS array contains {Red,Green}. The red color ties up with the legend type (Country or Town) whichever comes first in the Bar data records. The legend color ties up with the "type" as and when the city Type comes in the Bar data records.
If the first record contains type as "Country" then the Red color legend is for "Country" type and if the first record contains type as "Town" then the Red color legend is for "Town" type .
How can I set the specific Legend color for a specific city Type irrespective of the order in which the city Type is present in the Bar Data records?
Comment