- Components
- Rating
- Half fill + label
Half Fill + Label 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.
Updated

What this style sets
A style is the rating component with a few properties set. Send these, or start from the style in the editor.
{
"score.value": 3.5,
"score.partial": "half",
"score.showValue": true,
"score.valueFormat": "fraction",
"score.valueColor": "#374151"
}Good for
- Marketplace-style review summaries
- Comparison tables with visible scores
- Review request emails showing the current average
Try your own data
Change the half fill + label rating here with the same controls the editor shows. The preview updates as you type, and you get the API request for your changes.
Examples
Each example is the same half fill + label rating with different values. The JSON is what you send.
Marketplace seller rating
A 4.5/5 seller score with half-star precision for a storefront badge.
{
"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.
{
"score.value": 3.5,
"score.partial": "half",
"score.showValue": true,
"score.valueFormat": "fraction",
"score.valueColor": "#0F766E",
"score.activeColor": "#0D9488"
}New values, every render
Set '<key>.value' to the score for each render; max, colors and border props are overridable too. Send only the properties you want to change; everything else keeps its design value. The API guides cover every language.
curl -X POST "https://render.imejis.io/v1/$IMEJIS_DESIGN_ID" \
-H "dma-api-key: $IMEJIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"score.iconShape": "star",
"score.value": 3.5,
"score.partial": "half",
"score.showValue": true,
"score.valueFormat": "fraction",
"score.valueColor": "#374151"
}' \
-o image.pngconst res = await fetch(`https://render.imejis.io/v1/${process.env.IMEJIS_DESIGN_ID}`, {
method: "POST",
headers: {
"dma-api-key": process.env.IMEJIS_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
"score.iconShape": "star",
"score.value": 3.5,
"score.partial": "half",
"score.showValue": true,
"score.valueFormat": "fraction",
"score.valueColor": "#374151"
}),
})
if (!res.ok) throw new Error(`render failed: ${res.status}`)
const image = Buffer.from(await res.arrayBuffer())import os
import requests
response = requests.post(
f"https://render.imejis.io/v1/{os.environ['IMEJIS_DESIGN_ID']}",
headers={
"dma-api-key": os.environ["IMEJIS_API_KEY"],
"Content-Type": "application/json",
},
json={
"score.iconShape": "star",
"score.value": 3.5,
"score.partial": "half",
"score.showValue": True,
"score.valueFormat": "fraction",
"score.valueColor": "#374151"
},
)
response.raise_for_status()
with open("image.png", "wb") as f:
f.write(response.content)Other rating styles
Half Fill + Label Rating questions
What does the Half fill + label style change on the rating component?
Fractional score rounded to halves with a "3.5/5" label alongside. It sets 5 properties on the rating component: value, partial, showValue, valueFormat, valueColor. Everything else keeps the component's defaults, so your data and layout carry over.
How do I render the half fill + label rating through the API?
Add a rating component to a design, then send its data together with the style's properties as flat overrides (for example score.value and score.partial) in the render request. Each render can carry different data while keeping the Half fill + label look.
Can the rating value change on every API call?
Yes — send '<key>.value' with any number, including fractions like 4.3; max, colors and other properties are overridable too.
How are fractional scores like 4.3 displayed?
The partial property controls the last icon: 'exact' fills it proportionally, 'half' rounds to halves and 'round' rounds to a whole icon.
Where the rating component fits
Free tools built on it, guides that use it, and the components that sit beside it.





