[vtkusers] vtkQtBarChartView issue

justfrom justfrom at gmail.com
Tue Feb 22 04:59:58 EST 2011


Hi Jeff,

Thanks very much. Based on the TestBarGraph example, i build the Qt
ItemModel manually. And it works fine in vtkQtBarChart.

Regards
J.F.

2011/2/21 Jeff Baumes <jeff.baumes at kitware.com>

> I do not know of API in those classes that allow this. You may want to look
> at the newer OpenGL-based charts (see
> VTK/Charts/Testing/Cxx/TestBarGraph.cxx). Marcus may know whether your use
> case is possible there.
>
> Jeff
>
> On Mon, Feb 21, 2011 at 3:02 AM, justfrom <justfrom at gmail.com> wrote:
>
>> Hi All,
>>
>> i have a question about vtkQtBarChartView usage. I get a vtkTable which
>> has 100 values (each is one counter) in one column and then i display them
>> by vtkQtBarChartView.
>>
>> The x-axis only show index label from 0 to 99. But how can i show actual
>> scalar value by x-axis label to tell that the scalar value's counter is xxx.
>>
>> I trace the code but not find proper method to get non-index label.
>>
>> Could some one help on this issue?
>>
>> Thanks and Regards
>> J.F.
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>
>
> --
> Jeff Baumes, Ph.D.
> Technical Lead, Kitware Inc.
> (518) 881-4932
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110222/d349ba19/attachment.htm>


More information about the vtkusers mailing list