Santhosh has uploaded a new change for review.
https://gerrit.wikimedia.org/r/307477
Change subject: Fix broken personal translation stats graph at CX dashboard
......................................................................
Fix broken personal translation stats graph at CX dashboard
Changes for Chart.js 2.2.1
Bug: T144259
Change-Id: If6fcd71bc651ece82822d72e1e63f57ceddea03a
---
M modules/widgets/translator/ext.cx.translator.js
1 file changed, 41 insertions(+), 7 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation
refs/changes/77/307477/1
diff --git a/modules/widgets/translator/ext.cx.translator.js
b/modules/widgets/translator/ext.cx.translator.js
index 6c0a3dd..13b9761 100644
--- a/modules/widgets/translator/ext.cx.translator.js
+++ b/modules/widgets/translator/ext.cx.translator.js
@@ -17,8 +17,9 @@
labels: Object.keys(
stats.cxtranslatorstats.publishTrend ),
datasets: [
{
- strokeColor: '#347BFF',
- fillColor: '#347BFF',
+ borderColor: '#347BFF',
+ backgroundColor: '#347BFF',
+ borderWidth: 1,
data: $.map(
stats.cxtranslatorstats.publishTrend, function ( data ) {
return data.delta;
} )
@@ -26,11 +27,44 @@
]
};
/*global Chart:false */
- cxTrendChart = new Chart( ctx ).Bar( data, {
- responsive: true,
- barDatasetSpacing: 1,
- showScale: false,
- showTooltips: false
+ cxTrendChart = cxTrendChart = new Chart( ctx, {
+ type: 'bar',
+ data: data,
+ options: {
+ scales: {
+ xAxes: [ {
+ scaleLabel: {
+ display: false
+ },
+ gridLines: {
+ display: false
+ },
+ ticks: {
+ display: false
+ }
+ } ],
+ yAxes: [ {
+ scaleLabel: {
+ display: false
+ },
+ gridLines: {
+ display: false
+ },
+ ticks: {
+ display: false
+ }
+ } ]
+ },
+ title: {
+ display: false
+ },
+ tooltips: {
+ enabled: false
+ },
+ legend: {
+ display: false
+ }
+ }
} );
}
--
To view, visit https://gerrit.wikimedia.org/r/307477
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If6fcd71bc651ece82822d72e1e63f57ceddea03a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Santhosh <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits