← Back to team overview

dhis2-devs team mailing list archive

Re: [Branch ~dhis2-devs-core/dhis2/trunk] Rev 1855: (GIS) Line chart for several periods implemented.

 

On 14 May 2010 15:07, Knut Staring <knutst@xxxxxxxxx> wrote:
> On Fri, May 14, 2010 at 3:40 PM, Bob Jolliffe <bobjolliffe@xxxxxxxxx> wrote:
>> highcharts look very beautiful but I think Knut is right.  I don't
>> think we could use it.
>>
>> The flot thing looks a bit primitive :-(
>
> The commercial alternatives are indeed more polished, but I think this
> may easily cover many of our needs - perhaps to be supplemented at
> some later stage. Here are some examples:
>
> http://people.iola.dk/olau/flot/examples/stacking.html
> http://groups.google.com/group/flot-graphs/msg/b56101eb1375d1da
>
> There is also flotr:
> http://solutoire.com/flotr/docs/
>
>
>> Have you looked at rendering charts in svg?  I see there are a few
>> javascript (http://keith-wood.name/svggraphRef.html) , java and even
>> xslt libaries (Dave pawson's
>> http://www.dpawson.co.uk/graph2svg/index.html#intro is excellent but
>> sadly xslt 2.0) out there to do that, and being an open standard we
>> can customize to our heart's content.
>
> SVG is definitely a contender - but looks like it may take some more
> work to get going in terms of what we are currently looking for,

Its not really that complicated.  If you use your favorite graphing
program to create a template (I use gnuplot with terminal type svg but
there are probably more modern alternatives) then you can relatively
easily use this as a base and then use whatever programmatic means to
update the actual data series representation in the chart.  See for
example the last three data chunks (actually line drawing) in the
markup of the attached.  This could be updated dynamically via
javascript/ajax on the client side or on the server side depending on
the use case.

Cheers
Bob

And the good news is that native svg support is finally coming in IE9.
 Its already in the platform review http://ie.microsoft.com/testdrive/

>so
> maybe a good strategy could be to for flot now and move in the
> direction of SVG a bit later on?
>
> Knut
>
>
>> Regards
>> Bob
>>
>> On 14 May 2010 13:59, Knut Staring <knutst@xxxxxxxxx> wrote:
>>> It seems the best alternative might be this JQuery library (MIT
>>> licensed, so no problem):
>>> http://code.google.com/p/flot/
>>>
>>> Knut
>>>
>>> On Fri, May 14, 2010 at 2:32 PM, Knut Staring <knutst@xxxxxxxxx> wrote:
>>>> Hm...does not look good from a licensing point of view, I'm afraid,
>>>> since we want this to be used by both governments and anyone else. I
>>>> think we must try and find another alternative
>>>> http://www.highcharts.com/license
>>>>
>>>> Knut
>>>>
>>>> On Fri, May 14, 2010 at 2:26 PM, Jan Henrik Øverland
>>>> <janhenrik.overland@xxxxxxxxx> wrote:
>>>>> The charts included in Ext3 require a Flash plugin. Thus I decided to use
>>>>> Highcharts (http://www.highcharts.com) instead, which is pure JavaScript and
>>>>> afaik wouldn't cause any licence issues. Would be nice if the licence gurus
>>>>> could have a look, tho.
>>>>>
>>>>>
>>>>> On Fri, May 14, 2010 at 1:59 PM, <noreply@xxxxxxxxxxxxx> wrote:
>>>>>>
>>>>>> Merge authors:
>>>>>>  Jan Henrik Øverland (janhenrik-overland)
>>>>>> ------------------------------------------------------------
>>>>>> revno: 1855 [merge]
>>>>>> committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
>>>>>> branch nick: trunk
>>>>>> timestamp: Fri 2010-05-14 13:57:55 +0200
>>>>>> message:
>>>>>>  (GIS) Line chart for several periods implemented.
>>>>>> added:
>>>>>>  dhis-2/dhis-support/dhis-support-i18n/
>>>>>>
>>>>>>  dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetMapValuesByMapAndFeatureIdAction.java
>>>>>>
>>>>>>  dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/resources/highcharts/
>>>>>>
>>>>>>  dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/resources/highcharts/Ext.ux.HighChart.js
>>>>>>
>>>>>>  dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/resources/highcharts/adapter-extjs.js
>>>>>>
>>>>>>  dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/resources/highcharts/highcharts.js
>>>>>> modified:
>>>>>>
>>>>>>  dhis-2/dhis-api/src/main/java/org/hisp/dhis/aggregation/AggregatedMapValue.java
>>>>>>  dhis-2/dhis-api/src/main/java/org/hisp/dhis/datamart/DataMartStore.java
>>>>>>  dhis-2/dhis-api/src/main/java/org/hisp/dhis/mapping/MappingService.java
>>>>>>
>>>>>>  dhis-2/dhis-services/dhis-service-datamart-default/src/main/java/org/hisp/dhis/datamart/jdbc/JdbcDataMartStore.java
>>>>>>
>>>>>>  dhis-2/dhis-services/dhis-service-mapping/src/main/java/org/hisp/dhis/mapping/DefaultMappingService.java
>>>>>>
>>>>>>  dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/objectmapper/AggregatedMapValueRowMapper.java
>>>>>>
>>>>>>  dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetMapValuesByLevelAction.java
>>>>>>
>>>>>>  dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetMapValuesByMapAction.java
>>>>>>
>>>>>>  dhis-2/dhis-web/dhis-web-mapping/src/main/resources/META-INF/dhis/beans.xml
>>>>>>  dhis-2/dhis-web/dhis-web-mapping/src/main/resources/struts.xml
>>>>>>
>>>>>>  dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/jsonAggregatedMapValues.vm
>>>>>>
>>>>>>  dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/jsonminAggregatedMapValues.vm
>>>>>>
>>>>>>  dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/index.html
>>>>>>
>>>>>>  dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/index.js
>>>>>>
>>>>>>  dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/resources/mapfish/widgets/Shortcuts.js
>>>>>> The size of the diff (1923 lines) is larger than your specified limit of
>>>>>> 1000 lines
>>>>>>
>>>>>> --
>>>>>> lp:dhis2
>>>>>> https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
>>>>>>
>>>>>> Your team DHIS 2 developers is subscribed to branch lp:dhis2.
>>>>>> To unsubscribe from this branch go to
>>>>>> https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
>>>>>>
>>>>>> _______________________________________________
>>>>>> Mailing list: https://launchpad.net/~dhis2-devs
>>>>>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>>>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Mailing list: https://launchpad.net/~dhis2-devs
>>>>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Cheers,
>>>> Knut Staring
>>>>
>>>
>>>
>>>
>>> --
>>> Cheers,
>>> Knut Staring
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>
>
>
>
> --
> Cheers,
> Knut Staring
>

Attachment: spline.xhtml
Description: application/xhtml


Follow ups

References