sonar chart

View: New views
3 Messages — Rating Filter:   Alert me  

Parent Message unknown sonar chart

by Alvim :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi!

1. I'd like to reuse the same chart "engine" that Sonar uses to create another "radar" or "bar" charts (or even different charts types).

Is there any documentation about that specific solution (about the "?chart" service and REST parameters)?

Paulo Alvim
Diretor de Tecnologia
Powerlogic SA
55 (31) 3555-0050



Re: sonar chart

by Simon Brandhof-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Paulo,

Indeed you can develop your own chart types in sonar plugins. The extension point is org.sonar.plugins.api.charts.Chart in sonar-plugin-api module. It's recommended to extend AbstractChart and to use JFreechart. For the moment all needed data have to be passed in http parameters. The chart can not directly load measures from database.

Unfortunatly the helloworld project still does not contain chart samples. We'll fix it as soon as possible.

Regards,
Simon


Re: sonar chart

by Simon Brandhof-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I forgot to say that JFree Eastwood [1] is embedded in Sonar. This partial implementation of the Google Chart API is mapped to url /gchart, for example http://localhost:9000/gchart?cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World