Skip to content

Commit

Permalink
Automated prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
kum-deepak committed Feb 14, 2022
1 parent 30b7978 commit cb0027c
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 59 deletions.
30 changes: 17 additions & 13 deletions web-src/crime/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -512,10 +512,11 @@ <h2>Major Canadian City Crime Stats 1998-2011</h2>
})
);

caChart.configure({
width: 600,
height: 450
})
caChart
.configure({
width: 600,
height: 450,
})
.dataProvider(
new dc.CFSimpleAdapter({
dimension: cities,
Expand Down Expand Up @@ -615,10 +616,11 @@ <h2>Major Canadian City Crime Stats 1998-2011</h2>
.colorDomain([13, 30])
.debug(false);

incidentChart.configure({
width: 360,
height: 180
})
incidentChart
.configure({
width: 360,
height: 180,
})
.dataProvider(
new dc.CFMultiAdapter({
dimension: years,
Expand Down Expand Up @@ -655,10 +657,11 @@ <h2>Major Canadian City Crime Stats 1998-2011</h2>
.ticks(5)
.tickFormat(d3.format('d'));

homicideChart.configure({
width: 360,
height: 150
})
homicideChart
.configure({
width: 360,
height: 150,
})
.dataProvider(
new dc.CFMultiAdapter({
dimension: years,
Expand All @@ -685,7 +688,8 @@ <h2>Major Canadian City Crime Stats 1998-2011</h2>

chartGroup.renderAll();
});
</script> <script type="text/javascript">
</script>
<script type="text/javascript">
/* eslint-disable */
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-33628816-1']);
Expand Down
63 changes: 35 additions & 28 deletions web-src/stock.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,11 @@ d3.csv('ndx.csv').then(data => {
// <br>API: [Bubble Chart](https://dc-js.github.io/dc.js/docs/html/BubbleChart.html)

// (_optional_) define chart width, `default = 200`
yearlyBubbleChart /* dc.bubbleChart('#yearly-bubble-chart', 'chartGroup') */.configure({
width: 990,
height: 250
})
yearlyBubbleChart /* dc.bubbleChart('#yearly-bubble-chart', 'chartGroup') */
.configure({
width: 990,
height: 250,
})
.configure({
// (_optional_) define chart transition duration, `default = 750`
transitionDuration: 1500,
Expand Down Expand Up @@ -281,10 +282,11 @@ d3.csv('ndx.csv').then(data => {
// <br>API: [Pie Chart](https://dc-js.github.io/dc.js/docs/html/PieChart.html)

// (_optional_) define chart width, `default = 200`
gainOrLossChart /* dc.pieChart('#gain-loss-chart', 'chartGroup') */.configure({
width: 180,
height: 180
})
gainOrLossChart /* dc.pieChart('#gain-loss-chart', 'chartGroup') */
.configure({
width: 180,
height: 180,
})
.configure({
// Define pie radius
radius: 80,
Expand Down Expand Up @@ -323,10 +325,11 @@ d3.csv('ndx.csv').then(data => {
.colorAccessor(function(d, i){return d.value;})
*/

quarterChart /* dc.pieChart('#quarter-chart', 'chartGroup') */.configure({
width: 180,
height: 180
})
quarterChart /* dc.pieChart('#quarter-chart', 'chartGroup') */
.configure({
width: 180,
height: 180,
})
.configure({
radius: 80,
innerRadius: 30,
Expand All @@ -345,10 +348,11 @@ d3.csv('ndx.csv').then(data => {
// to a specific group then any interaction with such chart will only trigger redraw
// on other charts within the same chart group.
// <br>API: [Row Chart](https://dc-js.github.io/dc.js/docs/html/RowChart.html)
dayOfWeekChart /* dc.rowChart('#day-of-week-chart', 'chartGroup') */.configure({
width: 180,
height: 180
})
dayOfWeekChart /* dc.rowChart('#day-of-week-chart', 'chartGroup') */
.configure({
width: 180,
height: 180,
})
.configure({
label: d => d.key.split('.')[1],
// Title sets the row text
Expand All @@ -374,10 +378,11 @@ d3.csv('ndx.csv').then(data => {
// to a specific group then any interaction with such chart will only trigger redraw
// on other charts within the same chart group.
// <br>API: [Bar Chart](https://dc-js.github.io/dc.js/docs/html/BarChart.html)
fluctuationChart /* dc.barChart('#volume-month-chart', 'chartGroup') */.configure({
width: 420,
height: 180
})
fluctuationChart /* dc.barChart('#volume-month-chart', 'chartGroup') */
.configure({
width: 420,
height: 180,
})
.configure({
elasticY: true,
// (_optional_) whether bar should be center to its x value. Not needed for ordinal chart, `default=false`
Expand Down Expand Up @@ -414,10 +419,11 @@ d3.csv('ndx.csv').then(data => {
//Specify an area chart by using a line chart with `.renderArea(true)`.
// <br>API: [Stack Mixin](https://dc-js.github.io/dc.js/docs/html/StackMixin.html),
// [Line Chart](https://dc-js.github.io/dc.js/docs/html/LineChart.html)
moveChart /* dc.lineChart('#monthly-move-chart', 'chartGroup') */.configure({
width: 990,
height: 200
})
moveChart /* dc.lineChart('#monthly-move-chart', 'chartGroup') */
.configure({
width: 990,
height: 200,
})
.configure({
transitionDuration: 1000,
round: d3.timeMonth.round,
Expand Down Expand Up @@ -473,10 +479,11 @@ d3.csv('ndx.csv').then(data => {

// Since this bar chart is specified as "range chart" for the area chart, its brush extent
// will always match the zoom of the area chart.
volumeChart /* dc.barChart('#monthly-volume-chart', 'chartGroup'); */.configure({
width: 990,
height: 40
})
volumeChart /* dc.barChart('#monthly-volume-chart', 'chartGroup'); */
.configure({
width: 990,
height: 40,
})
.configure({
round: d3.timeMonth.round,
alwaysUseRounding: true,
Expand Down
42 changes: 24 additions & 18 deletions web-src/vc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,11 @@ <h2>US Venture Capital Landscape 2011</h2>
);

d3.json('../geo/us-states.json').then(statesJson => {
usChart.configure({
width: 990,
height: 500
})
usChart
.configure({
width: 990,
height: 500,
})
.dataProvider(
new dc.CFSimpleAdapter({
dimension: states,
Expand All @@ -156,11 +157,13 @@ <h2>US Venture Capital Landscape 2011</h2>
})
)
.configure({
geoJsons: [{
name: 'state',
data: statesJson.features,
keyAccessor: d => d.properties.name,
}],
geoJsons: [
{
name: 'state',
data: statesJson.features,
keyAccessor: d => d.properties.name,
},
],
title: d =>
`State: ${d.key}\nTotal Amount Raised: ${numberFormat(
d.value ? d.value : 0
Expand All @@ -185,10 +188,11 @@ <h2>US Venture Capital Landscape 2011</h2>
.colorDomain([0, 200])
.projection(d3.geoAlbersUsa());

industryChart.configure({
width: 990,
height: 200
})
industryChart
.configure({
width: 990,
height: 200,
})
.dataProvider(
new dc.CFSimpleAdapter({
dimension: industries,
Expand Down Expand Up @@ -221,10 +225,11 @@ <h2>US Venture Capital Landscape 2011</h2>
industryChart.yAxis().tickFormat(s => `${s} deals`);
industryChart.xAxis().tickFormat(s => `${s}M`);

roundChart.configure({
width: 990,
height: 200
})
roundChart
.configure({
width: 990,
height: 200,
})
.dataProvider(
new dc.CFSimpleAdapter({
dimension: rounds,
Expand Down Expand Up @@ -260,7 +265,8 @@ <h2>US Venture Capital Landscape 2011</h2>
chartGroup.renderAll();
});
});
</script> <script type="text/javascript">
</script>
<script type="text/javascript">
/* eslint-disable */
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-33628816-1']);
Expand Down

0 comments on commit cb0027c

Please sign in to comment.