Half fill + label rating
Rating styletype: "rating"Show fractional review scores rounded to half stars with a "3.5/5" label alongside, driven by every API call. Create labeled rating images free.
Design JSON — “Half fill + label” variant
{
"title": "Rating sample",
"description": "A dynamic star rating",
"dimensions": {
"width": 800,
"height": 420
},
"background": {
"color": "#ffffff"
},
"components": [
{
"id": "sample-rating",
"key": "score",
"type": "rating",
"position": {
"x": 260,
"y": 182
},
"rotation": 0,
"size": {
"width": 280,
"height": 56
},
"dynamic": true,
"properties": {
"value": 3.5,
"max": 5,
"iconShape": "star",
"activeColor": "#FBBF24",
"inactiveColor": "#E5E7EB",
"emptyStyle": "filled",
"partial": "half",
"showValue": true,
"valueFormat": "fraction",
"opacity": 1,
"valueColor": "#374151"
}
}
]
}Rating examples
Real renders of the half fill + label rating — each one is the same component with different property values, and the API payload below each preview reproduces it exactly.
Marketplace seller rating
A 4.5/5 seller score with half-star precision for a storefront badge.
API overrides for this example
{
"score.value": 4.5,
"score.partial": "half",
"score.showValue": true,
"score.valueFormat": "fraction",
"score.valueColor": "#374151"
}Hotel review summary
A 3.5/5 guest average in the hotel brand teal, label included.
API overrides for this example
{
"score.value": 3.5,
"score.partial": "half",
"score.showValue": true,
"score.valueFormat": "fraction",
"score.valueColor": "#0F766E",
"score.activeColor": "#0D9488"
}When to use the half fill + label style
- Marketplace-style review summaries
- Comparison tables with visible scores
- Review request emails showing the current average
Use it dynamically via the API
Set '<key>.value' (or just '<key>') to the score for each render; max, colors and border props are overridable too.
Full API request with this variant's current values — the playground above sends only the properties you change
curl --location 'https://render.imejis.io/v1/{{YOUR_DESIGN_ID}}' \
--header 'dma-api-key: {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data '{
"score.value": 3.5,
"score.max": 5,
"score.iconShape": "star",
"score.activeColor": "#FBBF24",
"score.inactiveColor": "#E5E7EB",
"score.emptyStyle": "filled",
"score.partial": "half",
"score.showValue": true,
"score.valueFormat": "fraction",
"score.opacity": 1,
"score.valueColor": "#374151"
}'Only send the properties you want to change — everything else keeps its design value. See the API documentation for all languages.
Other rating styles
See the rating component page for the full property reference and FAQs.