Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » I wondering d3 charting widget.
I wondering d3 charting widget. [message #1066118] Mon, 01 July 2013 04:25 Go to next message
Cho HyunJong is currently offline Cho HyunJongFriend
Messages: 106
Registered: July 2009
Location: korea
Senior Member

Here(http://eclipsesource.com/blogs/2013/02/11/rap-2-0-countdown-55/) mentioned in the chart widget wonder.

So can i use?

If you need a tester or sub-developer tell me.
I'm interested.

thank you.
Re: I wondering d3 charting widget. [message #1066146 is a reply to message #1066118] Mon, 01 July 2013 09:29 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

That's just a prototype. I plan to publish the code soon, and let you
know when it's online.

Regards,
Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: I wondering d3 charting widget. [message #1066147 is a reply to message #1066146] Mon, 01 July 2013 09:34 Go to previous messageGo to next message
Cho HyunJong is currently offline Cho HyunJongFriend
Messages: 106
Registered: July 2009
Location: korea
Senior Member

Tanks ^^
Re: I wondering d3 charting widget. [message #1079274 is a reply to message #1066146] Sun, 04 August 2013 09:46 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

I've published the charts prototype on github:
https://github.com/ralfstx/rap-d3charts

Regards,
Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: I wondering d3 charting widget. [message #1079308 is a reply to message #1079274] Sun, 04 August 2013 11:06 Go to previous messageGo to next message
Cho HyunJong is currently offline Cho HyunJongFriend
Messages: 106
Registered: July 2009
Location: korea
Senior Member

woow, wonderful.
gooooooooooooooooooooooooooooooooooooooooooooooood.

really thanks.
Re: I wondering d3 charting widget. [message #1106196 is a reply to message #1066118] Tue, 10 September 2013 20:36 Go to previous messageGo to next message
Rene Richter is currently offline Rene RichterFriend
Messages: 13
Registered: May 2013
Junior Member
Hey Ralf,

this example caught my attention while I was looking for a possibility to present data in RAP.
Unfortunately I fail to adapt your example to my needs.
This the first time I'm using D3. And even though the tons of provided examples and tutorials were quite useful as a start, I still can't close the gap between the code of some simple bar chart in d3 and the bar-chart.js in your project.

Would you mind to give me a brief insight into your approach?

Thank you in advance.
Re: I wondering d3 charting widget. [message #1106891 is a reply to message #1066118] Wed, 11 September 2013 17:34 Go to previous messageGo to next message
Rene Richter is currently offline Rene RichterFriend
Messages: 13
Registered: May 2013
Junior Member
Okay, I didn't come to a conclusion in respect of the D3/RAP example.
Anyway, maybe someone can remark something on my thoughts.

d3chart.TreeMap = function( parent ) {
	this._width = 960;
	this._height = 500
	this._color = d3.scale.category20c();
	var treemap = d3.layout.treemap()
		.size([width, height])
		.sticky(true)
		.value(function(item) { return item.getValue; });
	this._items = new d3chart.ItemList();
	this._chart = new d3chart.Chart( parent, this );
};

d3chart.TreeMap.prototype = {

  addItem: function( item ) {
    this._items.add( item );
    this._chart._scheduleUpdate();
  },

  removeItem: function( item ) {
    this._items.remove( item );
    this._chart._scheduleUpdate();
  },

  destroy: function() {
    this._chart.destroy();
  },

  initialize: function() {

  },
  
  setHeight: function(height){
	this._height = height;
  }
  
  setWidth: function(width){
	this._width = witdh;
  }
  
}



rap.registerTypeHandler( "d3chart.TreeMap", {

  factory: function( properties ) {
    var parent = rap.getObject( properties.parent );
    return new d3chart.TreeMap( parent );
  },

  destructor: "destroy",

  properties: [ "width", "height"],

  events: [ "Selection" ]

} );



- Let's start att the bottom: Since I am trying to create a remote object of type 'TreeMap', I wrote a minimal type handler. I am not sure about the properties, consider them as tentative

- I defined an appropriate treemap object and added setters for all properties defined in the handler, capability to add remove items from my itemlist, and destroy() and initialze() -> where are they derived from? who invokes them?

- I my view, there isn't much to be done on the java site, the TreeMap.java has a constructor calling super with remoteType 'd3chart.TreeMap', and setters/getters for the attributes 'width' and 'heigth', the above tree-map.js is addes to the chart Resources

-------

I can't help but get the impression that I still don't have the necessary understanding for the example. Am I on the right track? My next step would be to implement the render function which appears do do all the "d3 stuff".

Any thoughts?



Re: I wondering d3 charting widget. [message #1109990 is a reply to message #1106196] Mon, 16 September 2013 08:00 Go to previous messageGo to next message
Tim Buschtoens is currently offline Tim BuschtoensFriend
Messages: 396
Registered: July 2009
Senior Member
Hi.

Ralf is temporarily not active in this group, so I'm afraid you won't
get an answer for a while.

Greetings,
Tim



Am 10.09.2013 22:36, schrieb Rene Richter:
> Hey Ralf,
>
> this example caught my attention while I was looking for a possibility
> to present data in RAP.
> Unfortunately I fail to adapt your example to my needs. This the first
> time I'm using D3. And even though the tons of provided examples and
> tutorials were quite useful as a start, I still can't close the gap
> between the code of some simple bar chart in d3 and the bar-chart.js in
> your project.
> Would you mind to give me a brief insight into your approach?
>
> Thank you in advance.

--
Tim Buschtöns

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: I wondering d3 charting widget. [message #1117499 is a reply to message #1109990] Thu, 26 September 2013 14:09 Go to previous message
Rene Richter is currently offline Rene RichterFriend
Messages: 13
Registered: May 2013
Junior Member
Thank you for your reply.

Is there any other possibility to push this further?

Currently i'm failing running the treemap layout on a non-json input and I wonder whether this is not more of a d3 specific problem.

Is anyone still working with this rap/d3 chart example?
Previous Topic:toolitem's dynamic width to grab the right space of toolbar?
Next Topic:Listening to changes in Text caret position/selection
Goto Forum:
  


Current Time: Fri Apr 19 21:03:59 GMT 2024

Powered by FUDForum. Page generated in 0.03253 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top