Re: Displaying Chart in HomePage

2015-04-09 Thread German Vivero
Hi, Dan I put a chart on DomainService, like in the addon example , and work great, same for collection entity, that ok. but if annotate a collection with @HomeView that's render a table and a summary but not a chart. Then try with an action that return a WicketChart, this action called from Domain

Re: Displaying Chart in HomePage

2015-04-09 Thread Dan Haywood
Another place to look is the wickedcharts addon [1]. And Martin has written a whole bunch of custom component factories recently for a client that some of us Isis committers were involved with... Cheers Dan [1] https://github.com/isisaddons/isis-wicket-wickedcharts On 9 April 2015 at 14:43, Ger

Re: Displaying Chart in HomePage

2015-04-09 Thread German Vivero
Hi, sunand p, you can get chart working on HomePage? if yes, can you share some snipet I have same problem, and I'm never write ComponentFactory. 2015-03-11 10:25 GMT+00:00 Martin Grigorov : > Hi, > > Take a look at https://github.com/martin-g/isis-wicket-waveform. > It is very similar project to

Re: Displaying Chart in HomePage

2015-03-11 Thread Martin Grigorov
Hi, Take a look at https://github.com/martin-g/isis-wicket-waveform. It is very similar project to what you need. -dom module has Waveform object -fixture module creates 3 WaveformObject (this is a domain entity) instances, each of them having an instance of a Waveform -webapp module defines a Com

Re: Displaying Chart in HomePage

2015-03-11 Thread sunand p
Hi Martin, I have limited knowledge on Apache Wicket, just digging in to the WickedCharts isisaddons I found that we already have a ComponentFactory called StandaloneValueAsWickedChartFactory which does what you say, isn't it? Can I reuse it? If yes, how? Also the document https://isis.apache.org/

Re: Displaying Chart in HomePage

2015-03-07 Thread Martin Grigorov
Hi, Your view model should have a property that describes the chart, i.e. contains all needed information. Register a ComponentFactory (e.g. with ServiceLoader) that creates a component/Panel for the type of the view model. The component should render the chart by using the provided data ( ViewMo

Re: Displaying Chart in HomePage

2015-03-07 Thread sunand p
Hi Dan, Just to clarify a little more my question is more of inside a view model instead of rendering the chart by an Action (which means at click of a button) can i render the chart in the view itself. If it is related to the second question you mentioned in the email please throw some light on i

Re: Displaying Chart in HomePage

2015-03-07 Thread sunand p
Thanks Dan, for the quick response my question was with respect to the first one, will reply to this thread if I manage to render a chart in the Home Page. - Sunand On Sat, Mar 7, 2015 at 4:04 PM, Dan Haywood wrote: > Isis basically just invokes the action that is annotated with @HomePage. > Th

Re: Displaying Chart in HomePage

2015-03-07 Thread Dan Haywood
Isis basically just invokes the action that is annotated with @HomePage. This action could return anything... a scalar, a list of objects, a single entity, a view model, and it'll be rendered as normal. Most likely you should create a view model for your dashboard, and have the @HomePage action re

Re: Displaying Chart in HomePage

2015-03-07 Thread James Agada
Or a map Sent from my iPhone > On Mar 7, 2015, at 11:29 AM, sunand p wrote: > > Hi All, > > Is there a way to render a chart in the Dashboard (Home Page) instead of > having it as an action and then rendering a chart. I know that there is > limitation in scalar charts when attached to an entity

Displaying Chart in HomePage

2015-03-07 Thread sunand p
Hi All, Is there a way to render a chart in the Dashboard (Home Page) instead of having it as an action and then rendering a chart. I know that there is limitation in scalar charts when attached to an entity but how about in a Home Page? Any suggestions? - Sunand