<div>In the example give in <a href="http://www.itk.org/Wiki/VTK/Examples/Cxx/Plotting/BarChart" target="_blank">http://www.itk.org/Wiki/VTK/Examples/Cxx/Plotting/BarChart</a>, there are three sets of  y-axis data and four <font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-style-span" style="line-height: 13px; white-space: pre; ">vtkIntArray </span></font><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; line-height: 13px; white-space: pre; "> arrMonth,</span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; "><span class="Apple-style-span" style="line-height: 13px; white-space: pre; "> </span><span class="Apple-style-span" style="line-height: 13px; white-space: pre; ">arr2008, arr2009 and arr2010 -- where </span></span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; line-height: 13px; white-space: pre; ">arrMonth has legends for x-axis</span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; line-height: 13px; white-space: pre; ">. Now I have two questions.</span></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-style-span" style="line-height: 13px; white-space: pre; "><br></span></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-style-span" style="line-height: 13px; white-space: pre; ">1. The x legend is defined in </span></font><span class="Apple-style-span" style="line-height: 13px; white-space: pre; "><font class="Apple-style-span" face="arial, helvetica, sans-serif">vtkIntArray, arrMonth which basically sets an integer as x-axis legend. Now It is not always going to be the case that x axis legends are going to be an int. What if I have a string or char. How would I set std::string or char* to be x-axis legend for bar chart?</font></span></div>
<div><span class="Apple-style-span" style="line-height: 13px; white-space: pre; "><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br></font></span></div><div><span class="Apple-style-span" style="line-height: 13px; white-space: pre; "><font class="Apple-style-span" face="arial, helvetica, sans-serif">2. If I had only one</font></span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; "><span class="Apple-style-span" style="line-height: 13px; white-space: pre; "> </span></span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; "><span class="Apple-style-span" style="line-height: 13px; white-space: pre; ">arr2008 </span></span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; line-height: 13px; white-space: pre; ">vtkIntArray</span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; "><span class="Apple-style-span" style="line-height: 13px; white-space: pre; "> for data on y axis and I want some of the bar colors to be in red while other to be in green (for the same array). How can I set the property of individual bar colors for the same </span></span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; line-height: 13px; white-space: pre; ">vtkIntArray? Is it even possible in vtk 5.9?</span></div>
<div><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; line-height: 13px; white-space: pre; "><br></span></div><div><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; line-height: 13px; white-space: pre; "><br>
</span></div><div><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; line-height: 13px; white-space: pre; ">I will really appreciate any help in this! </span></div><div><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; line-height: 13px; white-space: pre; "><br>
</span></div><div><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; line-height: 13px; white-space: pre; ">Thank You </span></div><div><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; line-height: 13px; white-space: pre; "><br>
</span></div><div><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; line-height: 13px; white-space: pre; ">Amitesh  </span></div>