I'm building a bar plot in d3.js in which each bar represents total TB cases during a month.  The data essentially consists of a date (initially strings in %Y-%m format, but parsed using d3.time.format.parse) and an integer. I'd like the axis...
I have this graph :   http://jsfiddle.net/5c4sa6vb/1/  Ive been trying to mess about with it and try flip the y axis. What i need is for the ticks to start at 0,0 at the bottom left. I have tried messing with the domain and range but cant seem to sol...
Is there any possibility to limit the number of d3.svg.axis integer labels displayed on the graph? Take for instance this graph. There are only 5 sizes here: [0, 1, 2, 3, 4]. However, the ticks are also displayed for .5, 1.5, 2.5 and 3.5....
I am just starting to learn D3, and have been following a tutorial to create this piece of code.  I created a couple of bars and intend to create an x axis for my graph. The problem is when I add the ".call(xAxis)" to my canvas the browsers w...
Has anybody an idea how to add a y-axis to this example below?  https://bl.ocks.org/mbostock/e1192fe405703d8321a5187350910e08  The example shows how to generate multiple charts at once with dynamically calculated yScale for each data series. But how...
I have been trying to simply rotate my hAxis on the following graph for long now. Tried several solutions explained below! Cant believe something that simple seems that hard to do. Source code below:  <html>   <title>VM Allocation Perform...
I want to create a very simple bottom axis using D3.  This is my code:    const margin = { top: 20, right: 20, bottom: 20, left: 20 } const width = 600 const height = 50 const widthWithoutMargins = width - margin.left - margin.right const heightWitho...
I have this code: https://plnkr.co/edit/t1GKaQOGnFxkTMK03Ynk    var MIN = 60;   var HR = MIN * 60;   var tripDomain = [0, 15*MIN, 30*MIN, 45*MIN, 60*MIN, 90*MIN, Math.max(24*HR, d3.max(data))];    var bins = d3.histogram()     .thresholds(tripDomain)...
Right now I could able to set one axis to rotate.   Working code:  https://codepen.io/itzkinnu/full/erwKzY   How to rotate an object in random axis instead of one fixed axis.  Something like this...
See: http://jsfiddle.net/bQHjj/  Following the green line, the circles should be vertically aligned with my x axis, but all of them are moved a few pixels to the right.   The X axis isn't showing it's first tick, which should be 01.05.2013....

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.