mirror of
https://github.com/hargata/lubelog.git
synced 2025-12-10 00:46:08 -06:00
fix html encodings.
This commit is contained in:
parent
a8fad6f160
commit
aba178a324
@ -16,14 +16,14 @@
|
||||
new Chart($("#pie-chart"), {
|
||||
type: 'pie',
|
||||
data: {
|
||||
labels: ['@translator.Translate(userLanguage, "Service Records")',
|
||||
'@translator.Translate(userLanguage, "Repairs")',
|
||||
'@translator.Translate(userLanguage, "Upgrades")',
|
||||
'@translator.Translate(userLanguage, "Tax")',
|
||||
'@translator.Translate(userLanguage, "Fuel")'],
|
||||
labels: [decodeHTMLEntities('@translator.Translate(userLanguage, "Service Records")'),
|
||||
decodeHTMLEntities('@translator.Translate(userLanguage, "Repairs")'),
|
||||
decodeHTMLEntities('@translator.Translate(userLanguage, "Upgrades")'),
|
||||
decodeHTMLEntities('@translator.Translate(userLanguage, "Tax")'),
|
||||
decodeHTMLEntities('@translator.Translate(userLanguage, "Fuel")')],
|
||||
datasets: [
|
||||
{
|
||||
label: '@translator.Translate(userLanguage,"Expenses by Type")',
|
||||
label: decodeHTMLEntities('@translator.Translate(userLanguage, "Expenses by Type")'),
|
||||
backgroundColor: ["#003f5c", "#58508d", "#bc5090", "#ff6361", "#ffa600"],
|
||||
data: [
|
||||
globalParseFloat('@Model.ServiceRecordSum'),
|
||||
@ -31,7 +31,7 @@
|
||||
globalParseFloat('@Model.UpgradeRecordSum'),
|
||||
globalParseFloat('@Model.TaxRecordSum'),
|
||||
globalParseFloat('@Model.GasRecordSum')
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -45,7 +45,7 @@
|
||||
},
|
||||
title: {
|
||||
display: true,
|
||||
text: '@translator.Translate(userLanguage, "Expenses by Type")',
|
||||
text: decodeHTMLEntities('@translator.Translate(userLanguage, "Expenses by Type")'),
|
||||
color: useDarkMode ? "#fff" : "#000"
|
||||
},
|
||||
}
|
||||
|
||||
@ -32,7 +32,7 @@
|
||||
labels: barGraphLabels,
|
||||
datasets: [
|
||||
{
|
||||
label: '@translator.Translate(userLanguage, "Expenses by Month")',
|
||||
label: decodeHTMLEntities('@translator.Translate(userLanguage, "Expenses by Month")'),
|
||||
backgroundColor: barGraphColors,
|
||||
data: barGraphData
|
||||
}
|
||||
@ -43,7 +43,7 @@
|
||||
title: {
|
||||
display: true,
|
||||
color: useDarkMode ? "#fff" : "#000",
|
||||
text: '@translator.Translate(userLanguage,"Expenses by Month")'
|
||||
text: decodeHTMLEntities('@translator.Translate(userLanguage, "Expenses by Month")')
|
||||
},
|
||||
legend: {
|
||||
display: false,
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
labels: barGraphLabels,
|
||||
datasets: [
|
||||
{
|
||||
label: '@translator.Translate(userLanguage,"Fuel Mileage by Month")',
|
||||
label: decodeHTMLEntities('@translator.Translate(userLanguage, "Fuel Mileage by Month")'),
|
||||
backgroundColor: barGraphColors,
|
||||
data: barGraphData
|
||||
}
|
||||
@ -44,7 +44,7 @@
|
||||
title: {
|
||||
display: true,
|
||||
color: useDarkMode ? "#fff" : "#000",
|
||||
text: '@translator.Translate(userLanguage,"Fuel Mileage by Month")'
|
||||
text: decodeHTMLEntities('@translator.Translate(userLanguage, "Fuel Mileage by Month")')
|
||||
},
|
||||
legend: {
|
||||
display: false,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user