Skip to content
Snippets Groups Projects
Commit 30700cc1 authored by Boris's avatar Boris
Browse files

FIX: chart did not display when locale was 'fr' because chart points' 'y'...

FIX: chart did not display when locale was 'fr' because chart points' 'y' parameter decimal separator was a comma instead of a dot
parent 3e0dc441
Branches master
No related tags found
No related merge requests found
......@@ -40,13 +40,13 @@ class Chart {
$this->points['amountCollectedByDayCumulative'][] = [
't' => $lastDay->getTimestamp() * 1000,
'y' => (string) $this->crowdfunding->convertIntoChosenUnit($lastAmount)
'y' => $this->crowdfunding->convertIntoChosenUnit($lastAmount)
];
$this->points['amountCollectedByDayCumulative'][] = [
't' => $followingDay->getTimestamp() * 1000,
'y' => (string) $this->crowdfunding->convertIntoChosenUnit($lastAmount)
'y' => $this->crowdfunding->convertIntoChosenUnit($lastAmount)
];
}
}
......@@ -98,7 +98,7 @@ class Chart {
$this->points['targetLine'][] = [
't' => $d->getTimestamp() * 1000,
'y' => (string) $target
'y' => $target
];
}
......@@ -134,7 +134,7 @@ class Chart {
$this->points['targetLine'][] = [
't' => $mt_0,
'y' => (string) $this->crowdfunding->getTarget()
'y' => $this->crowdfunding->getTarget()
];
// For x axis scaling
......@@ -146,7 +146,7 @@ class Chart {
$this->points['amountCollectedByDayCumulative'][] = [
't' => $mt_0,
'y' => "0"
'y' => 0
];
*/
......@@ -158,7 +158,7 @@ class Chart {
$this->points['amountCollectedByDay'][] = [
't' => $mt_0,
'y' => "0"
'y' => 0
];
} else {
......@@ -180,13 +180,13 @@ class Chart {
$this->points['amountCollectedByDay'][] = [
't' => $dayBefore->getTimestamp() * 1000,
'y' => (string) $this->crowdfunding->convertIntoChosenUnit($dailyAmount)
'y' => $this->crowdfunding->convertIntoChosenUnit($dailyAmount)
];
$this->points['amountCollectedByDayCumulative'][] = [
't' => $dayBefore->getTimestamp() * 1000,
'y' => (string) $this->crowdfunding->convertIntoChosenUnit($dailyAmountCumulative)
'y' => $this->crowdfunding->convertIntoChosenUnit($dailyAmountCumulative)
];
$lastDailyAmount = $dailyAmount;
......@@ -201,7 +201,7 @@ class Chart {
$this->points['amountCollectedByDay'][] = [
't' => $dayBefore->getTimestamp() * 1000,
'y' => (string) $this->crowdfunding->convertIntoChosenUnit($lastDailyAmount)
'y' => $this->crowdfunding->convertIntoChosenUnit($lastDailyAmount)
];
$this->addLastPointOfCumulativeGraph($dailyAmountCumulative);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment