Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
118eea4
Initialization - Choose Vanilla JS
Oct 13, 2024
6d66bc1
build the base look
Oct 13, 2024
e2ea14a
Basic structure v1.0.0.0 alpha
Oct 13, 2024
afc5929
Base structure v1.0.0.0.1
Oct 13, 2024
7733a4a
now the template is ready
Oct 13, 2024
aa59864
Update the margin
Oct 13, 2024
c4a2aa5
Center the pic
Oct 13, 2024
d73a04b
Start working on graph1
Oct 14, 2024
f87f6eb
Update the console.log
Oct 14, 2024
a2440d3
uPDATE
TheRealMilesLee Oct 14, 2024
40b467a
Update the graph1
TheRealMilesLee Oct 15, 2024
ec21db1
Almost finish graph 1, have problem with scale
TheRealMilesLee Oct 15, 2024
00afac7
it froze and I don't know why
TheRealMilesLee Oct 15, 2024
fec9dc3
update the CSS, still has problem
TheRealMilesLee Oct 15, 2024
e28688c
update the design
Oct 15, 2024
3b6190e
Update the indentation
Oct 15, 2024
c45ebfe
Graph 2 sort of finished
Oct 15, 2024
6ec69ec
Finished the graph 1 and 2, need work on the scale
Oct 16, 2024
6c093db
now working on the ratio adjustment
Oct 16, 2024
8bcbfdd
Size has some problem
Oct 16, 2024
2c7fb0a
no idea
Oct 16, 2024
66abaa0
data should be less for graph 1 and label should go outside of graph2
TheRealMilesLee Oct 16, 2024
14682a2
At least the ratio is right
TheRealMilesLee Oct 16, 2024
d41e085
Add the console log
TheRealMilesLee Oct 16, 2024
847fddf
Graph3 finished
TheRealMilesLee Oct 16, 2024
5b0fba7
Update the Graph 3, now need work on the Graph 1 scale and Graph 2 label
TheRealMilesLee Oct 16, 2024
2d60396
Add the new design
Oct 16, 2024
9e8382b
Now the Graph1 ratio is correct, working on the label then
TheRealMilesLee Oct 17, 2024
0c38863
Code cleanup and simplization. also remove the duplicate items for th…
Oct 17, 2024
4cd79dc
bring the Y axis label to the front
Oct 17, 2024
6352dd1
down scaling, delete those luxury brands
Oct 17, 2024
e570a38
wrap at line 78
Oct 17, 2024
58d6f2e
Swap the Graph 2 from pie chart to the line-area chart
Oct 17, 2024
bbf7a2f
roll back to pie chart
Oct 18, 2024
5b569c4
Update the lable and line
Oct 18, 2024
f16170a
Update the color error
Oct 18, 2024
61aa32a
This is the latest change. graph 2 finished
Oct 18, 2024
1e01428
now finally we don't have collisions
Oct 18, 2024
3e2d293
trying to finding a way to add legend description
Oct 18, 2024
8e9814e
Add the caption to the gRAPH 3. Done, i'm gonna go to sleep
Oct 18, 2024
211dcc3
finished the cleanup and documentation
Oct 18, 2024
d3d10a6
Format to wrap at column 78
TheRealMilesLee Oct 19, 2024
9754010
Now it looks way better
Oct 19, 2024
e14306d
delete unused pic
Oct 19, 2024
1bb6334
Refactored, beautify, and makes it more readable
Oct 20, 2024
3d66360
add the description
Oct 20, 2024
27a3539
Starting HW3
TheRealMilesLee Oct 27, 2024
4f75015
Update onClick structure, have problem on line display
TheRealMilesLee Oct 27, 2024
54d63c4
Update the graph 1 click filter feature
TheRealMilesLee Oct 27, 2024
89acef5
Update the onHover event for graph 3
TheRealMilesLee Oct 27, 2024
a276460
Add the transistion animation and highlight for graph 1
TheRealMilesLee Oct 28, 2024
e7973ec
update the odometer scale and the price scale for graph 1
TheRealMilesLee Oct 28, 2024
13edf89
Update the graph 2, move labels inside and add a onHover expand the s…
TheRealMilesLee Oct 28, 2024
4317369
Update the graph1 logic and add a button to reset the filters
TheRealMilesLee Oct 29, 2024
9e8a3e4
Add line to graph 3 and new animation
TheRealMilesLee Oct 30, 2024
01e80e5
Separate and cleanup, need rebuild graph 1, switch to sankey diagram …
TheRealMilesLee Oct 31, 2024
56997d0
Swapped the parallel to sankey, torture....
TheRealMilesLee Oct 31, 2024
9260d29
Swapped graph 2 and 3, about to lose my sanity
TheRealMilesLee Nov 1, 2024
5755449
Swapped the graph 3 to pie chart, show percentage distribution
TheRealMilesLee Nov 1, 2024
7e62fdc
weird interaction...why is it gone
TheRealMilesLee Nov 2, 2024
651843a
Now we can switch...only for double tap
TheRealMilesLee Nov 2, 2024
745d2f7
fixed, I'm a dumass
TheRealMilesLee Nov 2, 2024
2edba34
Graph 3 done
TheRealMilesLee Nov 2, 2024
220833a
try color options
TheRealMilesLee Nov 2, 2024
19ca3f3
Swap Graph 2 to line chart. Fixed Graph 1 interaction. Update the doc…
TheRealMilesLee Nov 3, 2024
1003b57
Update the label
TheRealMilesLee Nov 3, 2024
98585c0
Update the hover
TheRealMilesLee Nov 3, 2024
239eec5
Add interaction with Graph2 and 1
TheRealMilesLee Nov 4, 2024
be19e0d
Update the description and docs, will upload new design later
TheRealMilesLee Nov 4, 2024
bbdf7b5
Update the documentation and animation logic....I think that's about it
TheRealMilesLee Nov 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Homework2/VanillaJS-Template/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ document.querySelector('#app').innerHTML = `
`

mountBarChart();
mountCounter(document.querySelector('#counter-button'));
mountCounter(document.querySelector('#counter-button'));
6 changes: 0 additions & 6 deletions Homework2/VanillaJS-Template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,5 @@
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"devDependencies": {
"vite": "^4.3.9",
"axios": "^1.2.1",
"d3": "^7.8.0",
"lodash": "^4.17.21"
}
}
5 changes: 2 additions & 3 deletions Homework2/VanillaJS-Template/src/notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ var counter = 0;

export const Notes = (msg) => (`
<div class='card' id='note-card'>

<div class="card-content">
<h5>${msg}</h5>
<p>
This template uses Materialize, a UI libarary based on Google's Material Design. It is independent of any frontend frameworks (e.g., Vuetify for Vue, Materail UI for React), hence good for vanilla JavaScript projects.
This template uses Materialize, a UI libarary based on Google's Material Design. It is independent of any frontend frameworks (e.g., Vuetify for Vue, Materail UI for React), hence good for vanilla JavaScript projects.
</p>
</div>
<div class="card-action">
Expand All @@ -22,4 +21,4 @@ export function mountCounter(element) {
element.innerHTML = `Have clicked this ${counter} times`
}
element.addEventListener('click', () => setCounter(counter + 1))
}
}
14 changes: 2 additions & 12 deletions Homework2/Vue-Template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,11 @@
"preview": "vite preview"
},
"dependencies": {
"@vueuse/core": "^9.9.0",
"axios": "^1.2.1",
"d3": "^7.8.0",
"lodash": "^4.17.21",
"pinia": "^2.0.28",
"vite-plugin-vuetify": "^1.0.1",
"vue": "^3.2.45",
"vuetify": "^3.0.6"
"@vueuse/core": "^9.9.0"
},
"devDependencies": {
"@types/d3": "^7.4.0",
"@types/lodash": "^4.14.191",
"@vitejs/plugin-vue": "^4.0.0",
"typescript": "^4.9.3",
"vite": "^4.0.0",
"vue-tsc": "^1.0.11"
"@vitejs/plugin-vue": "^4.0.0"
}
}
54 changes: 54 additions & 0 deletions Homework2/trdli/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import { Graph1_OverallView, Graph2_DetailView, Graph3_DetailView, mountChart1, mountChart2, mountChart3 } from './src/VisualizeLayout';
import './style.css';

document.querySelector('#header').innerHTML = `
<header class="Greeting_div fade-in">
<h5>Car Sales Trend - The ultimate guide to buy a car</h5>
<h6>By Hengyi Li</h6>
</header>
`;

document.querySelector('#MainBody').innerHTML = `
<div class="grid-container">
<div class="row1 fade-in">
${ Graph1_OverallView() }
</div>
<div class="row2-left fade-in">
${ Graph2_DetailView() }
</div>
<div class="row2-right fade-in">
${ Graph3_DetailView() }
</div>
</div>
`;

document.querySelector('#footer').innerHTML = `
<footer class="footer fade-in">
<div class="container">
<div class="row">
<div class="col l6 s12">
<h5>ECS272 Information Visualization</h5>
<p>The ultimate guide to buy a car</p>
<br>
<p> &copy; 2024 Hengyi Li. All rights reserved </p>
</div>
<div class="col l4 offset-l2 s12">
<h5>Connect with me</h5>
<ul>
<li><a class="black-text"
href="https://github.com/TheRealMilesLee"
target="_blank">GitHub</a></li>
<li><a class="black-text"
href="https://www.linkedin.com/in/hengyi-li-968744191/?locale=en_US"
target="_blank">LinkedIn</a></li>
</ul>
</div>
</div>
</div>
</footer>
`;

mountChart1();
mountChart2();
mountChart3();

Loading