On Fri, Nov 12, 2010 at 9:36 AM, Koen Deforche <[email protected]> wrote: > 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.
Do you have plans to implement it? > 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. I would try but I'm using Wt since few weeka and only now I'm becoming familiar with it (too may plain pointers around for my taste). If I'm desperate to have tooltip on the chart and those haven't been implemented yet I will give a shot to it. Regards Gaetano Mendola -- cpp-today.blogspot.com ------------------------------------------------------------------------------ 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
