Elysia Tools Docs
EN
Language
ZHESPTRUFRDEEN
Back to site
Browse tools

Data Visualization

Rating Star Chart

Create beautiful star rating visualizations for products, services, and user feedback analysis with interactive animations

html· HTML resultOpen tool

Quick start

Call this tool from your code in three languages.

cURL
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}'

© 2026 Elysia Tools. Developer documentation.

Back to siteBrowse tools

API reference

Send a POST request with your inputs as JSON. File parameters require a separate upload first.

Endpoint

HTTP
POST https://api.elysiatools.com/en/api/tools/rating-star-chart

Parameters

NameTypeRequiredDescription
ratingDatatextareaYesRating data (0-5). Supports JSON with label/rating/count, simple label:rating:count, or just rating values
chartTitletextNoTitle that will be displayed above the chart
layoutselectNo—
starSizenumberNoSize of each star in pixels
starColorcolorNoColor for filled stars
emptyStarColorcolorNoColor for empty stars
animationDurationnumberNoDuration of the star animation in milliseconds
backgroundColorcolorNoBackground color for the chart container
showPercentagecheckboxNoDisplay rating distribution and percentages
showCountcheckboxNoDisplay number of reviews for each item
showAveragecheckboxNoDisplay overall rating summary and statistics
showDecimalcheckboxNoDisplay decimal ratings (e.g., 4.5) instead of rounded
animatedcheckboxNoAnimate stars when they load

Response format

HTML result

JSON
{
  "result": "<div>Processed HTML content</div>",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}

MCP integration

Add this tool to your Model Context Protocol server so AI agents can list and call it.

Server configuration

Add this block to your MCP client configuration:

mcp.json
{
  "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"
    }
  }
}

List available tools

After connecting to the SSE endpoint, list the exposed tools:

tools/list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Call this tool

Invoke the tool by its id, passing arguments built from its parameters:

tools/call
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "rating-star-chart",
    "arguments": {
  "ratingData": "JSON format:\n[{&quot;label&quot;: &quot;Product A&quot;, &quot;rating&quot;: 4.5, &quot;count&quot;: 120},\n{&quot;label&quot;: &quot;Product B&quot;, &quot;rating&quot;: 3.8, &quot;count&quot;: 85},\n{&quot;label&quot;: &quot;Product C&quot;, &quot;rating&quot;: 4.2, &quot;count&quot;: 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
}
  }
}
Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20).

Questions or issues? Contact [email protected]

Browse tools
Open tool