Rtl Data Visualization logo

Rtl Data Visualization

Community
MiladJoodi
rtl-data-visualization

Build and debug RTL / Persian data visualizations with Recharts (or similar): Persian digits, fa-IR locale, axis and tooltip alignment, labels, formatting, responsive charts, and common RTL chart bugs. Use when charts look LTR, numbers are Latin-only, tooltips misalign, or axes flip incorrectly under dir=rtl.

Overview

PublisherMiladJoodi
Repositoryskills
Skill namertl-data-visualization
Stars
24
Forks
1
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by MiladJoodi on GitHub. Read the source before you install it.

Installation

Install the Rtl Data Visualization AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/MiladJoodi/skills/tree/main/skills/rtl-data-visualization
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MiladJoodi/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/rtl-data-visualization .claude/skills/rtl-data-visualization
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Rtl Data Visualization in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Rtl Data Visualization on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Rtl Data Visualization is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

RTL Data Visualization

Practical guide for Persian / RTL charts. Recharts and SVG chart libraries are often LTR-first; wrapping the page in dir="rtl" is not enough.

Scope

In scopeRecharts (and similar), RTL layout, Persian digits/locale, axes, tooltips, labels, responsive behavior
Out of scopeGeneral dashboard UX, backend analytics, non-chart visualization

Related: persian-rtl-ui for layout/UI; this skill is charts-only.


When to use

  • Building charts for lang="fa" / dir="rtl" products.
  • Axis ticks, tooltips, or legends show Latin digits or LTR alignment.
  • Chart mirrors incorrectly, or “start” of the axis is on the wrong side.
  • Design-system chart tokens look wrong only inside chart SVG.

Agent workflow

Inspect

  • Chart library (Recharts, Chart.js, Visx, custom SVG).
  • Whether the chart sits under dir="rtl" or a forced dir="ltr" wrapper.
  • Formatters: toLocaleString, Intl.NumberFormat, custom digit maps.
  • Tooltip / legend components and their portals.
  • Container component (e.g. ChartContainer) and CSS variables for series colors.

Diagnose

SymptomLikely cause
Digits are 0-9 in UI that elsewhere uses ۰-۹Missing fa-IR formatter or PersianDigits scope
Tooltip text aligns leftTooltip content ignores RTL; portal outside dir
X axis feels “backwards”Category order vs mirrored SVG; unnecessary scaleBand reverse
Labels collide on the rightPadding/margin still assume LTR overflow
Legend order opposite of seriesLegend layout uses physical left/right
Chart ignores Design System colorsChart config hardcodes hex instead of CSS vars

Plan → Implement → Verify

  1. Decide: mirror the geometry for RTL, or keep plot LTR and only localize labels.
  2. Apply locale formatters to ticks, tooltips, and value labels.
  3. Fix tooltip/legend direction explicitly (dir="rtl", logical CSS).
  4. Check mobile: resize, long Persian labels, truncated ticks.
  5. Verify light/dark + DS tokens if charts use --chart-* variables.

Patterns that work

Persian numbers and locale

ts
const faNumber = new Intl.NumberFormat("fa-IR")

tickFormatter={(v) => faNumber.format(Number(v))}

For dates, prefer a Jalali-aware formatter when the product uses شمسی dates; do not pretend fa-IR Gregorian labels are Jalali.

Prefer logical layout around the chart

  • Use ms / me / ps / pe for chrome around the chart.
  • Keep inherently LTR fragments (formulas, codes) in dir="ltr".

Tooltips

  • Put dir="rtl" on tooltip content.
  • Format values with the same Intl instance as axes.
  • Ensure portal roots inherit direction (or set it on the tooltip node).

RTL geometry decision

Two valid product choices — pick one and document it:

  1. Localized chrome, LTR plot — axes grow left→right as in Western charts; only labels/tooltips are Persian. Simpler with Recharts.
  2. Mirrored plot — categories start from the right. Requires careful reversal of domain/order and testing of brushes/zooms.

Most product UIs should choose (1) unless stakeholders explicitly want mirrored plots.

Responsive

  • Avoid fixed widths that clip Persian labels.
  • Test long series names in legend.
  • Stack legend below chart on small screens instead of side columns that collapse oddly in RTL.

Common failures

  • flex-row-reverse “fixes” that break when dir changes.
  • Hardcoded # colors that ignore theme / Design System chart tokens.
  • Formatting in one place (axis) but not tooltip → inconsistent digits.
  • Assuming Recharts layout="vertical" automatically does RTL correctly.
  • Nesting charts inside PersianDigits transforms but SVG <text> bypasses it — prefer explicit formatters on ticks.

Best practices

  • One shared formatChartNumber / formatChartDate helper.
  • Chart config objects reference CSS variables (var(--chart-1)), not raw hex.
  • Snapshot or screenshot test one bar, one line, one pie in RTL.
  • Keep diagnosis evidence: screenshot + DOM dir + formatter output.

Report

markdown
## RTL chart report
**Library:** …
**Geometry choice:** localized chrome | mirrored plot
**Digits/locale:** pass | fail
**Tooltip/legend:** pass | fail
**Tokens/theme:** pass | fail
**Fix:** …

Frequently asked questions

What does the Rtl Data Visualization AI skill do?

Build and debug RTL / Persian data visualizations with Recharts (or similar): Persian digits, fa-IR locale, axis and tooltip alignment, labels, formatting, responsive charts, and common RTL chart bugs. Use when charts look LTR, numbers are Latin-only, tooltips misalign, or axes flip incorrectly under dir=rtl.

Why use Rtl Data Visualization on TypingMind?

Because you install it once and use it with any model. Rtl Data Visualization is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Rtl Data Visualization in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/MiladJoodi/skills/tree/main/skills/rtl-data-visualization. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Rtl Data Visualization?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Rtl Data Visualization?

As many as you like. As long as a model supports skills, you can use Rtl Data Visualization with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Rtl Data Visualization AI skill free?

Yes. It is published on GitHub by MiladJoodi under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇