|
| 1 | +# Wheat Price Data Visualization Project |
| 2 | + |
| 3 | +This project demonstrates how to create sophisticated, interactive data visualizations for wheat price analysis using AI-assisted development. Without writing code manually, I used Claude 3.7 Sonnet to generate a complete visualization suite that includes heatmaps, parallel coordinates plots, and an executive summary dashboard. The visualizations feature responsive design, interactive filtering, dark/light themes, and contextual information about global events affecting wheat markets. |
| 4 | + |
| 5 | +. |
| 6 | +A fenti gabonás vizuaizációkat teljességgel kódolás nélkül készítettem (bár kellet hozzá egy pár próbálkozás.. :sweat_smile:) |
| 7 | +Itt megtaláljátok az összes promptot amit használtam (`clause-sonnet-3.7`): |
| 8 | + |
| 9 | +# [Prompt 1](https://github.com/denesdata/denesdata.github.io/blob/main/ADV%202025/5/prompts%201.md) - Wheat Price Data Visualization Development Journey |
| 10 | +This conversation documents the iterative development of interactive visualizations for wheat price data. The process began with a simple Vega-Lite specification for line charts and evolved into multiple sophisticated visualizations including: |
| 11 | + |
| 12 | +1. **Line charts** showing price trends over time for different wheat types |
| 13 | +2. **Interactive dashboard** with multiple chart types (bar charts, box plots, heatmaps) |
| 14 | +3. **Violin plot** showing price distributions by wheat type |
| 15 | +4. **D3.js carpet plot** with: |
| 16 | + - Color-coded price visualization |
| 17 | + - Year separators |
| 18 | + - Global event markers |
| 19 | + - Multiselect filtering options |
| 20 | + - Enhanced tooltips |
| 21 | + - Wheat/grain themed styling |
| 22 | + |
| 23 | +Throughout the development, several improvements were made: |
| 24 | +- Adding company logos to visualizations |
| 25 | +- Fixing technical issues (like Chart.js width calculation errors) |
| 26 | +- Switching from Chart.js to D3.js for better control |
| 27 | +- Enhancing user experience with better tooltips and filters |
| 28 | +- Adding contextual information about global events affecting wheat prices |
| 29 | +- Implementing a grain-themed design with gradients and icons |
| 30 | + |
| 31 | +The final product is a comprehensive, interactive data exploration tool that allows users to analyze wheat price trends across different types, countries, and time periods while providing context through global events that impacted the market. |
| 32 | + |
| 33 | +### Screenshot 1 |
| 34 | + |
| 35 | +. |
| 36 | + |
| 37 | +. |
| 38 | +# [Prompt 2](https://github.com/denesdata/denesdata.github.io/blob/main/ADV%202025/5/prompts%202.md) - Adding a second plot, interactions and styling |
| 39 | + |
| 40 | +Key developments: |
| 41 | + |
| 42 | +1. **Initial Restructuring** |
| 43 | + - Breaking a monolithic file into smaller functional components |
| 44 | + - Organizing code into a subfolder structure |
| 45 | + - Implementing proper separation of concerns (HTML, CSS, JS) |
| 46 | + |
| 47 | +2. **Visual Enhancements** |
| 48 | + - Adding gradients and wheat-themed styling |
| 49 | + - Incorporating FontAwesome icons |
| 50 | + - Fixing tooltip positioning issues |
| 51 | + - Removing drop shadows from logos |
| 52 | + |
| 53 | +3. **Adding Parallel Coordinates Plot** |
| 54 | + - Creating a second visualization type below the heatmap |
| 55 | + - Implementing interactive brushing and filtering |
| 56 | + - Fixing issues with categorical axes and year labels |
| 57 | + - Changing coloring from price-based to country-based |
| 58 | + |
| 59 | +4. **Style Refinements** |
| 60 | + - Aligning legends consistently |
| 61 | + - Using pastel colors inspired by Information is Beautiful and Airbnb ViSX |
| 62 | + - Implementing modern typography with the Inter font family |
| 63 | + - Reducing spline curvature to prevent data distortion |
| 64 | + |
| 65 | +5. **Theme Implementation** |
| 66 | + - Creating a dark theme with pink and green color scheme |
| 67 | + - Adding a theme toggle with sun/moon icons |
| 68 | + - Implementing persistent theme preferences |
| 69 | + - Adding top-left to bottom-right gradients on containers |
| 70 | + |
| 71 | +The final product is a sophisticated data visualization tool that combines a heatmap/carpet plot with a parallel coordinates plot, allowing users to explore wheat price data through multiple perspectives while enjoying a visually pleasing, professionally designed interface with both light and dark themes. |
| 72 | + |
| 73 | +### Screenshot 2 |
| 74 | + |
| 75 | +. |
| 76 | + |
| 77 | +. |
| 78 | +# [Prompt 3](https://github.com/denesdata/denesdata.github.io/blob/main/ADV%202025/5/prompts%202.md) - Final touches and Executive Summary |
| 79 | + |
| 80 | +Key developments: |
| 81 | + |
| 82 | +1. **Standardizing Chart Formatting** |
| 83 | + - Aligning titles, margins, and legends across both visualizations |
| 84 | + - Creating consistent container styling and spacing |
| 85 | + - Implementing uniform header and legend designs |
| 86 | + |
| 87 | +2. **Code Cleanup** |
| 88 | + - Eliminating duplicate function declarations |
| 89 | + - Standardizing function styles |
| 90 | + - Resolving global variable conflicts |
| 91 | + - Centralizing tooltip content generation |
| 92 | + |
| 93 | +3. **Event Visualization Improvements** |
| 94 | + - Fixing event dot tooltips and label alignments |
| 95 | + - Resolving issues with event markers moving on hover |
| 96 | + - Implementing consistent tooltip behavior |
| 97 | + |
| 98 | +4. **Navigation Enhancements** |
| 99 | + - Adding a navigation bar to the main page |
| 100 | + - Implementing smooth scrolling between sections |
| 101 | + - Adding appropriate spacing when scrolling to sections |
| 102 | + |
| 103 | +5. **Parallel Coordinates Refinements** |
| 104 | + - Implementing default price range highlighting (450-550) |
| 105 | + - Fixing cross-filtering functionality across multiple axes |
| 106 | + |
| 107 | +The final product features a cohesive design with consistent styling across all elements, proper cross-filtering functionality, and smooth navigation between different sections of the visualization. |
| 108 | + |
| 109 | +### Screenshot 3 |
| 110 | + |
| 111 | +. |
0 commit comments