Skip to content

Business intelligence made simple

Improved i18n and added thousands separator to charts - closes #369

Andrew Kane6c54b3d356e7
diff --git a/CHANGELOG.md b/CHANGELOG.md
index db2b6386..c240eed5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,7 @@
## 3.2.1 (unreleased)
+- Added thousands separator to charts
+- Improved i18n for charts
- Fixed leading zeros in variables
## 3.2.0 (2025-02-23)
diff --git a/app/views/blazer/queries/run.html.erb b/app/views/blazer/queries/run.html.erb
index 82760be1..574c7d93 100644
--- a/app/views/blazer/queries/run.html.erb
+++ b/app/views/blazer/queries/run.html.erb
@@ -46,7 +46,7 @@
<% chart_id = SecureRandom.hex %>
<% column_types = @result.column_types %>
<% chart_type = @result.chart_type %>
- <% chart_options = {id: chart_id} %>
+ <% chart_options = {id: chart_id, thousands: t("number.format.delimiter"), decimal: t("number.format.separator")} %>
<% if ["line", "line2"].include?(chart_type) %>
<% chart_options.merge!(min: nil) %>
<% end %>