js/visualisation.js
/**
	 * For plots that want a standard x axis via d3 this provides a consistent look.
	 * This is a thick axis line with a reasonably large number of ticks.
	 **/
For plots that want a standard x axis via d3 this provides a consistent look.
This is a thick axis line with a reasonably large number of ticks.
For plots that want a standard x axis via d3 this provides a consistent look . This is a thick axis line with a reasonably large number of ticks .
createXAxis(chartArea,xScale) {
		let xAxis = chartArea.append('g').attr('transform','translate(0,'+this.height+')');
		if(typeof this.ordinal == 'undefined' || !this.ordinal)
			xAxis.call(d3.axisBottom(xScale).tickFormat(d3.format(".4")) );
		else
			xAxis.call(d3.axisBottom(xScale));
		xAxis.selectAll('path').attr('stroke-width',2).attr('shape-rendering','crispEdges');
		return xAxis;
	}
createXAxis ( chartArea , xScale ) { let xAxis = chartArea . append ( 'g' ) . attr ( 'transform' , 'translate(0,' + this . height + ')' ) ; if ( typeof this . ordinal == 'undefined' || ! this . ordinal ) xAxis . call ( d3 . axisBottom ( xScale ) . tickFormat ( d3 . format ( ".4" ) ) ) ; else xAxis . call ( d3 . axisBottom ( xScale ) ) ; xAxis . selectAll ( 'path' ) . attr ( 'stroke-width' , 2 ) . attr ( 'shape-rendering' , 'crispEdges' ) ; return xAxis ; }
For plots that want a standard x axis via d3 this provides a consistent look.
For plots that want a standard x axis via d3 this provides a consistent look .