skip to Main Content

Jquery – Yii2 unable to view column chart using highcharts

I am trying to plot a chart via highchart in yii2. I have already installed it and set it. Below is my code in my index.php view <script src="https://code.highcharts.com/highcharts.js"></script> <script src="https://code.highcharts.com/modules/exporting.js"></script> function loadChartData() { $.ajax({ url: '$url_chart', method: 'GET', dataType:…

VIEW QUESTION

Jquery – Count elements and show/update value of current in view + total

I am trying to understand how to count and display current and total number of figures on my page. My html <div class="is-vertical"> <figure><img src="src.jpg"><figcaption class="wp-element-caption">Towers Day<br>NYC</figcaption></figure> <figure><img src="src.jpg"><figcaption class="wp-element-caption">Towers Day<br>NYC</figcaption></figure> <figure><img src="src.jpg"><figcaption class="wp-element-caption">Towers Day<br>NYC</figcaption></figure> </div> My js attempt of…

VIEW QUESTION
Back To Top
Search