Questions tagged [dimple.js]

`dimple` is an object-oriented API for business analytics powered by `d3`.

Dimple.js is an object-oriented API for business analytics powered by .

Examples

enter image description here enter image description here enter image description here
enter image description here enter image description here enter image description here

Getting Started

Before you can do anything, you must link d3. Simply add the following to your html:

<script src="http://d3js.org/d3.v3.min.js"></script>

That's the organ grinder taken care of, next you need the monkey. Add dimple as follows:

<script src="http://dimplejs.org/dist/dimple.v2.1.2.min.js"></script>

That's it, you're ready to get creative! If you don't know where to start, why not create a blank text document, drop the following in and save it as an html.

<head>
  <script src="http://d3js.org/d3.v3.min.js"></script>
  <script src="http://dimplejs.org/dist/dimple.v2.1.2.min.js"></script>
</head>
<body>
  <script type="text/javascript">
    var svg = dimple.newSvg("body", 800, 600);
    var data = [
      { "Word":"Hello", "Awesomeness":2000 },
      { "Word":"World", "Awesomeness":3000 }
    ];
    var chart = new dimple.chart(svg, data);
    chart.addCategoryAxis("x", "Word");
    chart.addMeasureAxis("y", "Awesomeness");
    chart.addSeries(null, dimple.plot.bar);
    chart.draw();
  </script>
</body>

Congratulations, you are now the proud owner of a dimple bar chart! Start playing and see where you end up. You might get some extra inspiration from the examples section.

What's up Doc(umentation)!

To understand how to use a particular dimple object or method please see the Full API Documentation

Author

John Kiernander

Contributors

Useful Links

371 questions
10
votes
2 answers

Dimple js plot not scaling correctly in Firefox

I made a few charts with dimple and they look OK in chromium (v 43), but in Firefox (v 40) they are rendered incorrectly. I inspected the page in the debugger and I can see that under the tag there is a tag. The inspector shows the g tag…
ventsyv
  • 3,316
  • 3
  • 27
  • 49
7
votes
2 answers

R: interactive plots (tooltips): rCharts dimple plot: formatting axis

I have some charts created with ggplot2 which I would like to embed in a web application: I'd like to enhance the plots with tooltips. I've looked into several options. I'm currently experimenting with the rCharts library and, among others, dimple…
PatrickT
  • 10,037
  • 9
  • 76
  • 111
7
votes
1 answer

rCharts plot won't appear in shiny app using dimple.js

I came along with this problem, that rCharts plot won't show in my shiny app. I found this example which perfectly suits my needs. Even though this chart works perfectly while just plotting in R, in shiny it is an blank page. I am not sure what is…
adomasb
  • 496
  • 4
  • 14
7
votes
1 answer

Multi-series in dimplejs

I am tinkering with a multi-series chart in dimplejs and got a bit stuck with the multi axis logic. With the following data: var data = [ {"Month":"01/2013", "Revenue":2000, "Profit":2000, "Units":4}, {"Month":"02/2013", "Revenue":3201,…
xav
  • 4,101
  • 5
  • 26
  • 32
5
votes
4 answers

Remove tick marks in d3 / dimple

How can I remove the tick marks without removing the associated label? I want to keep the labels ("banana", etc), but not the highlighted ticks. Here is a similar fiddle. var svg = dimple.newSvg("#chartContainer", 1000, 1000); var data = [ {…
Alice
  • 445
  • 1
  • 5
  • 18
5
votes
1 answer

How do you reduce the number of Y-axis ticks in dimple.js?

In dimple.js is there a way to, for example, reduce the number of y-axis ticks by half so that it would only show every other y tick instead of all of them?
cmgerber
  • 2,199
  • 3
  • 16
  • 15
5
votes
2 answers

NS_ERROR_FAILURE in Firefox when drawing dimple.js chart after jquery

I'm triing to draw a dimple.js svg bar chart, which is nested in jquery-ui tabs and accordeon, which I use for my website layout and I get pretty desperate. Everything works fine in Chrome and IE, but FF keeps throwing NS_ERROR_FAILURE exception.…
Martin
  • 65
  • 1
  • 5
5
votes
1 answer

Separate data from datahash

I am working on a Dimple/D3 chart that plots missing days' data as 0. date fruit count 2013-12-08 12:12 apples 2 2013-12-08 12:12 oranges 5 2013-12-09 16:37 apples 1 <- oranges inserted on…
williamtx
  • 81
  • 5
5
votes
1 answer

How to rotate x-axis text in dimple.js?

This is my dimple bar chart (powered by d3): var sidechart = new dimple.chart(chart_svg, data); sidechart.setBounds(60, 30, 200, 300) var x = sidechart.addCategoryAxis("x", "Long name"); …
Anna Pawlicka
  • 757
  • 7
  • 22
4
votes
1 answer

Dual x-axes for line-graphs in SVG

I have started to work on D3.js and Dimple.js. Our requirement is to create a line-graph with dual x-axes. Post basic research on this requirement, I found that D3.js or Dimple.js supports dual y-axes but not dual x-axes. My first question is "Does…
user3220129
  • 503
  • 9
  • 24
4
votes
1 answer

Crossfilter compatible charting libraries/ DC.js Alternatives

Has anyone managed to integrate or has got any idea if it is possible to use crossfilter with other charting libraries like nvd3 or C3.js? I know that interactive data exploration is possible with crossfilter using dc.js library but I am still…
4
votes
1 answer

Dimple.js Axis Labels

I have a dataset where each row has an id and a name property. The id property is the unique key, the names may be duplicated. I want the name to be shown on the category axis of a Dimple.js chart. If I use "name" as the argument to…
ne8il
  • 2,427
  • 1
  • 20
  • 18
4
votes
2 answers

Dimple.js how to customize range of values on Y-axis from 0 to 100?

I need to customize the y-axis value range to start from 0 till 100. I do not want the automated range that Dimple.js adds based on the data that I have. Please suggest if its possible. I tried the x.overrideMaxbut it is messing the bar/line plot.
user982
  • 189
  • 5
  • 14
4
votes
1 answer

Is there a working implemenation to fit multiple d3 charts like line, bar, etc on one page?

I am trying to fit multiple charts on a single jsp page. I have a combination of line and bar charts. I am using dimple API for d3.js. Please advice. Bootstrap doesnt seem to work with this.
user982
  • 189
  • 5
  • 14
4
votes
2 answers

in Dimple how do you change the order of the series ina legend?

I have a dimple graph with th ecode var svg = dimple.newSvg("#chartContainer", 800, 600); var myChart = new dimple.chart(svg, data); myChart.setBounds(120, 30, 750, 550); var x = myChart.addCategoryAxis("x", "time"); x.showGridlines =…
Dave Edelhart
  • 1,051
  • 1
  • 9
  • 13
1
2 3
24 25