Ruben
Forum Replies Created
-
Forum: Plugins
In reply to: [Wp-D3] D3 chart displaying below wordpress pageGreat, thanks!.
Forum: Plugins
In reply to: [Wp-D3] D3 chart displaying below wordpress pageHi,
You are getting the chart at the end of the page because you are appending it after the body in the following line:
var svgContainer = d3.select(“body”).append(“svg”) …
Instead of that you should use the <div> ID that the plugin creates automatically for you inside the body. It can be accessed using the WPD3_CHART_ID constant:
var svg = d3.select(“WPD3_CHART_ID”).append(“svg”) …
(or the old method, using the tab id you get at the tab of your editor, but this is discouraged, e.g.):
var svg = d3.select(“.wpd3946-0”).append(“svg”)
Forum: Plugins
In reply to: [Wp-D3] how to create responsive layoutsHi,
I think what you propose is feasible, the only thing to consider is how to provide the width and height for the chart, and if it can be automatically calculated.
I will look into this in the next plugin version ??Thanks for the feedback!.
Forum: Plugins
In reply to: [Wp-D3] 2,1.2 does not workHi,
I haven’t checked all the example yet but you don’t have to include the d3.js lib as it’s already included in the plugin.Forum: Plugins
In reply to: [Wp-D3] 2,1.2 does not workHi,
could you provide anything to debug the issue? A link to the page or the code would help a lot.Forum: Plugins
In reply to: [Wp-D3] A proposal – idea How to render the chart in the page editorHi,
This could be implemented. Maybe it will find its way in the next update ??
Thanks!.
Forum: Plugins
In reply to: [Wp-D3] Multiple Charts on Same PageHi,
Now seriously, the last plugin version 2.1.2 should resolve this (again ;-))
R.
Hi,
the new plugin version 2.1.2 should resolve this as the plugin now defines javascript namespaces for the charts.
R.
Hi p_ebox,
Yes, you are right. Currently the plugin keeps the information on the post/page, so the barchart content rendered would be that one stored on it.
The initial aim of the plugin is to provide d3 charts per-post, not per-user, so if two users want to different content for the same D3 chart it would be accomplished by duplicating the code on each of their posts.
R.
Forum: Plugins
In reply to: [Wp-D3] wp-d3 2.1 is not workingI removed a couple of duplicated headers that made the plugin appear as repeated on the plugins list (even with that the charts were rendered). Apart of that I couldn’t reproduce your issue.
Forum: Plugins
In reply to: [Wp-D3] wp-d3 2.1 is not workingHi, could you provide a link to the web?
Forum: Plugins
In reply to: [Wp-D3] Multiple Charts on Same PageHi,
the new version of the plugin (2.1) addresses the multiple charts issue.
R.
Forum: Plugins
In reply to: [Wp-D3] WordPress-d3 For DummiesHi,
You are right, .csv or .tsv doesn’t matter as long as wordpress allows you to upload the text file (some extensions are blocked).
In the example I used tsv because as you noticed there are no commas :-).The d3.min.js is already included in the WpD3 plugin, in the text editor you should drop your own code.
Forum: Plugins
In reply to: [Wp-D3] Can't seem to have more than 1 continuous looping chart on a page.Hi nrosquist,
I checked your link and I was able to reproduce your issue in my dev setup.
Although both charts appear the first loop stops iterating but I guess it may be a problem regarding the D3 library more that the Wp-D3 plugin.Forum: Plugins
In reply to: [Wp-D3] where to put extra html and cssHi,
I’m closing this as is not related to any specific issue.
R.