Issue
I want to convert Convert Array value to Int in Laravel. ( Array have single value using Min and Max function)
Now need to convert both value into INT and use them in ChartJS.....
or is there any other option to use the same for Y Axis Scale....
Min Value from Array----
array:1 [▼
"amount" => 55
]
Max Value from Array----
array:1 [▼
"amount" => 3249
]
Solution
Can't you just put values into in your blade file? Something like:
<script>
const jsObject: {
property: {{ $min['amount'] }}
}
</script>
Answered By - Ćukasz Socha
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.