<span style="border-collapse:collapse;color:rgb(51, 51, 51);font-family:arial, sans-serif;font-size:13px">I am facing a clot of issues in using vtkBarChartActor to make it render as I want it to do. I wonder if anybody here would help me with these issues and answer my questions?<div>
<br></div><div>vtkBarChartActor *actor = vtkBarChartActor::New();</div><div><div><br></div><div>1. I wanted to set the property of the labels on the x-axis for the bars to be rendered vertical. I used <div><br></div><div>
actor->GetLabelTextProperty()->SetOrientation(90);</div><div><br></div><div>However no matter what I do, the labels would always be rendered horizontal. What am I missing?</div><div><br></div><div>2. I want to sent the Title text font size to be of a specific size. It turns out that the font size is set automatically and is based on the number of characters in the Title. If the number of characters in the title is less, then the font size would be bigger and vice versa. <br>
<div><br></div><div><div>actor->GetTitleTextProperty()->SetFontSize(30);</div><div><br></div><div>I was trying to use this but it doesn't work or doesn't show any effect. What am I missing?</div><div><br></div>
<div>3. I can set the YTitle but is there a ways to set XTitle as well?</div><div><br></div><div>4. Y title is always rendered horizontally. Anybody who uses plots, knows that this is probably not ideal and a better way would be to rotate the y-axis title by 90 degrees so that it is along y axis. How can this be done?</div>
<div><br></div><div>5. Y-axis labels are always being show as floats (values.00). My values are all int and I want it to be rendered as such. How can this be done?. I used vtkIntArray as shown in the following but it had no effect in terms of how y-labels are rendered.</div>
</div></div></div></div><div><br></div><div><div>vtkIntArray *qData = vtkIntArray::New();</div><div>qData->SetNumberOfValues(nPartition);</div></div><div><div>for(int i = 0; i <nPartition; i++)</div><div> qData->SetValue(i,output[i]);</div>
</div><div><div>vtkDataObject *dobj = vtkDataObject::New();</div><div>dobj->GetFieldData()->AddArray(qData);</div></div><div><div>vtkBarChartActor *actor = vtkBarChartActor::New();</div><div>actor->SetInput(dobj);</div>
</div><div><br></div><div>6. vtkBarChartActor doesn't show X and Y-axes by default. Is there a way to switch it on?</div><div><br></div><div>7. Although vtkCharts is probably good step but it lacks so many capabilities when compared with, say, gnuplot. Are there any plans to include a vtk porting of gnuplot which would be something similar to what was done with Sandia's Verdict?</div>
<div><br></div><div>Thank You</div><div><br></div><div>Amitesh</div></span>