![]() Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : fdshops ( 1003) PHP Version : 8.2.21 Disable Function : NONE Directory : /home/fdshops/public_html/resources/views/vendor/charts/progressbarjs/ |
@php($min = count($model->values) >= 2 ? $model->values[1] : 0) @php($max = count($model->values) >= 3 ? $model->values[2] : 100) @include('charts::_partials.container.title') <div id="{{ $model->id }}" style="position: relative;@include('charts::_partials.dimension.css')"></div> <script type="text/javascript"> $(function() { var {{ $model->id }} = new ProgressBar.Line('#{{ $model->id }}', { @if($model->colors and count($model->colors)) color: "{{ $model->colors[0] }}", @else color: '#ffc107', @endif strokeWidth: 4, svgStyle: {width: '100%', height: '100%'}, easing: 'easeInOut', duration: 1000, trailColor: '#eee', trailWidth: 4, }) {{ $model->id }}.animate({{ ($model->values[0] - $min) / ($max - $min) }}) }); </script>