This project is a web-based tool that visualizes Steam game reviews over time. By entering a Steam AppID, the tool fetches review data and game details from the Steam API, then displays the information as an interactive graph using Chart.js.
- Fetch Steam Review Data: Enter any Steam AppID to get historical review data.
- Interactive Graph: Displays positive and negative reviews with a "Level Line" to show trends.
- Dynamic Visualization: Toggle visibility of positive, negative reviews, and the level line.
- Real-time Data: Always fetches the latest review data when the page is reloaded.
- Clear 0-Line: Displays a white dashed line at 0 for better visibility.
- PHP: Handles API requests to Steam and processes the data.
- Chart.js: Used for rendering the interactive graph.
- HTML & CSS: For structuring and styling the web page.
-
Clone the Repository:
git clone https://github.com/yourusername/steam-review-graph.git
-
Setup Requirements:
- A server with PHP support (e.g., Apache, Nginx).
- Ensure
cURLis enabled in PHP.
-
Run the Project:
- Place the project folder in your server's root directory.
- Access the tool via
http://localhost/steam-review-graph/index.php.
-
Usage:
- Enter a valid Steam AppID (e.g.,
730for CS:GO). - Click "Get Reviews" to fetch data.
- Review statistics and the interactive graph will be displayed.
- Enter a valid Steam AppID (e.g.,
├── index.php # Main PHP file handling API calls and rendering the page
├── reviews.json # Temporary JSON file to store fetched review data
├── README.md # Project documentation
- Steam Review Histogram:
https://store.steampowered.com/appreviewhistogram/{appid} - Steam App Details:
https://store.steampowered.com/api/appdetails?appids={appid}
- Graph Styling: Modify CSS within
<style>tags inindex.php. - Chart Configuration: Adjust Chart.js settings inside the
<script>section.
This project is open-source and available under the MIT License.
