Data Visualization
Create beautiful star rating visualizations for products, services, and user feedback analysis with interactive animations
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/rating-star-chart' \
-H 'Content-Type: application/json' \
-d '{"ratingData":"JSON format:\n[{"label": "Product A", "rating": 4.5, "count": 120},\n{"label": "Product B", "rating": 3.8, "count": 85},\n{"label": "Product C", "rating": 4.2, "count": 200}]\n\nor text format:\nProduct A:4.5:120\nProduct B:3.8:85\nProduct C:4.2:200\n\nor just ratings:\n4.5\n3.8\n4.2","chartTitle":"Enter chart title...","layout":"list","starSize":"30","starColor":"#fbbf24","emptyStarColor":"#e5e7eb","animationDuration":"1000","backgroundColor":"#ffffff","showPercentage":true,"showCount":true,"showAverage":true,"showDecimal":true,"animated":true}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/rating-star-chart| Name | Type | Required | Description |
|---|---|---|---|
| ratingData | textarea | Yes | Rating data (0-5). Supports JSON with label/rating/count, simple label:rating:count, or just rating values |
| chartTitle | text | No | Title that will be displayed above the chart |
| layout | select | No | — |
| starSize | number | No | Size of each star in pixels |
| starColor | color | No | Color for filled stars |
| emptyStarColor | color | No | Color for empty stars |
| animationDuration | number | No | Duration of the star animation in milliseconds |
| backgroundColor | color | No | Background color for the chart container |
| showPercentage | checkbox | No | Display rating distribution and percentages |
| showCount | checkbox | No | Display number of reviews for each item |
| showAverage | checkbox | No | Display overall rating summary and statistics |
| showDecimal | checkbox | No | Display decimal ratings (e.g., 4.5) instead of rounded |
| animated | checkbox | No | Animate stars when they load |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-rating-star-chart": {
"name": "rating-star-chart",
"description": "Create beautiful star rating visualizations for products, services, and user feedback analysis with interactive animations",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=rating-star-chart",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "rating-star-chart",
"arguments": {
"ratingData": "JSON format:\n[{"label": "Product A", "rating": 4.5, "count": 120},\n{"label": "Product B", "rating": 3.8, "count": 85},\n{"label": "Product C", "rating": 4.2, "count": 200}]\n\nor text format:\nProduct A:4.5:120\nProduct B:3.8:85\nProduct C:4.2:200\n\nor just ratings:\n4.5\n3.8\n4.2",
"chartTitle": "Enter chart title...",
"layout": "list",
"starSize": "30",
"starColor": "#fbbf24",
"emptyStarColor": "#e5e7eb",
"animationDuration": "1000",
"backgroundColor": "#ffffff",
"showPercentage": true,
"showCount": true,
"showAverage": true,
"showDecimal": true,
"animated": true
}
}
}Questions or issues? Contact [email protected]