Hey Gaetano,

2010/11/11 Gaetano Mendola <[email protected]>:
> I need to display when overing with mouse on a
> Wt::Chart::WCartesianChart  point some extra info about
> the point itself.
> I have added to the model points this way:
>
>   ....
>   myModel->setData(i, j, boost::any(myDuration), Wt::DisplayRole);
>   myModel->setData(i, j, boost::any(myExtraInfo), Wt::ToolTipRole);
>   ....
>
> the graph works correctly but when overing with the mouse over a point
> the tooltip doesn't appear.
>
> am I missing something else to do?

That would be the way to do it, but, tooltips have not yet been
implemented by cartesian chart.

This could be easily added, IMO, by rendering 'active' areas
(WPaintedWidget::addArea) -- while this should be implemented in
WChart2DRenderer, you can also implement it yourself by specializing
the WCartesianChart::paintEvent() method and adding these areas after
rendering using WCartesianChart::mapToDevice() to compute the
coordinates.

Regards,
koen

------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to