Fix a JS code with PHP

I am using ApexCHartsJS and i want the DATA to show a PHP variable, my PHP variables looks like this %Grammar% for example:

I've created variables gra / lis / voc / rea / ave , but the result i get blank chart


var colors = ['#008FFB', '#00E396', '#FEB019', '#FF4560'];

var gra = ['%AVERAGE_CATEGORY_POINTS_Grammar%'];

var lis = ['%AVERAGE_CATEGORY_POINTS_Listening%'];

var voc = ['%AVERAGE_CATEGORY_POINTS_Vocabulary%'];

var rea = ['%AVERAGE_CATEGORY_POINTS_Reading%'];

var ave = ['%CORRECT_SCORE%'];

var options = {

chart: {

height: 500,

type: 'bar',

events: {

click: function(chart, w, e) {

[login to view URL](chart, w, e )




colors: colors,

plotOptions: {

bar: {

columnWidth: '50%',

distributed: true



dataLabels: {

enabled: true,


series: [{

data: [gra,lis,voc,rea,ave]


xaxis: {

categories: ['Grammar / 15', 'Listening / 15', 'Vocabulary / 15', 'Reading / 15', 'Average %'],

labels: {

style: {

colors: colors,

fontSize: '15px'





var chart = new ApexCharts(

[login to view URL]("#chart"),



[login to view URL]();


the expected data is numbers for each var, kindly share your knowledge

a very easy small task

Skills: PHP, Javascript, HTML5, CSS, Charts

See more: how to fix javascript errors in wordpress, how to fix javascript error discord, chrome javascript error console, php js interpreter, how to fix javascript error in internet explorer, how to fix javascript errors in google chrome, youtube how to fix javascript error, fix javascript error google chrome, random alphanumeric code php online, convertir code php php, video url embedd code php, mail code php post check, security code php, forgot password code php, google conversion code php, fix xss report php, invitation code php script, fix perl code, flex chat source code php, form fix page code php html

About the Employer:
( 1 review ) Amman, Saudi Arabia

Project ID: #20373165

Awarded to:


can start right now and fix it I am a technical consultant, and architect with over 7 years of experience with specialises in full-stack, highly scalable, real-time web and mobile applications using PHP(laravel, CI a More

$25 USD in 7 days
(5 Reviews)

17 freelancers are bidding on average $35 for this job


Dear Sir. I am interesting in your project. I'm senior Laravel, PHP, SQL, Javascript developer. I am sure, I will do my best to work with you on your project to present the best possible outcome for you. I will also do More

$50 USD in 1 day
(127 Reviews)

Hi I am software engineer and full stack PHP developer your project is looking very interesting and I am looking forward to your message

$25 USD in 1 day
(102 Reviews)

Hello dear How are you? I read your requirement carefully I am very interested in your post project. I am sure i can give you great result. I have rich experience on it. so please discuss more detail via chat. loo More

$20 USD in 7 days
(24 Reviews)

★★★ Chance To Touch Great Developer! ★★★ Dear, Nice to meet you. While reading your job description, I understood your main goal. I am proud of my Top skill, 8+ years of experience, 100% satisfaction rate in Web dev More

$30 USD in 7 days
(24 Reviews)

Hello! I am a web developer. I have checked your project description. I can help you as I have rich experience with JS (javascript) and PHP I guarantee the good result. I will wait for your reply. Thank you.

$20 USD in 7 days
(25 Reviews)

Dear sir! I am a senior full stack developer who has rich experiences in ecommerce website development. I have been working for 10+ years in information technology. I can fulfill your all requirements to the fullest. G More

$20 USD in 7 days
(12 Reviews)

Hey there, With more than 9 years of experience in this industry, I am a professional full-stack web developer. I’ve good hands-on experience in following Frameworks, CMSs- WordPress, Magento, Joomla, Drupal & PHP bas More

$150 USD in 2 days
(21 Reviews)

Hello I am an experienced web & mobile developer with over 7 years. And I have many working experiences with HTML/CSS/Javascript, jQuery, PHP and MySQL, etc. I can help you with it in a few hours. Please get in touch More

$50 USD in 1 day
(14 Reviews)

Hello, I am a full-time freelancer with strong communication skills and have flexible working hours. I assure you quality work, complete attention and proper communication. It would be great if we can have a shor More

$20 USD in 7 days
(6 Reviews)

Hello sir. I read your requirement in care. It is no problem for me. As you can see in my profile, I am fully experienced and lots of skills about your project. Chat by pressing a button and discuss me about it, we'd More

$50 USD in 1 day
(8 Reviews)

Dear Client. I've just read your details. As an expert in php and js, I'm sure I can do your task perfectly. I was wondering if you'd like to work with me. If so, I'll make big efforts for you and you will be satisfie More

$20 USD in 1 day
(14 Reviews)

Hi, i hope this finds you in good health. I can fix the issue you are facing. You are not calling php variables correctly. Question Are you receiving php variables as json ? And are you encoding them ? I can fix the More

$30 USD in 1 day
(6 Reviews)

Hi, Client. Thank you for your job posting. I read your description very carefully. I have experience PHP framework(laravel and codeigniter) and Wordpress development for 5 years long. And I majored Angular.js, JavaSc More

$30 USD in 1 day
(3 Reviews)

==================================== Done within 30 to 60 miniutes,Start now ==================================== I am a dedicated full stack Web Developer Having 3+ Year Experience. In Past, I have done 50+ Proje More

$15 USD in 1 day
(15 Reviews)

Hi I have checked the code. I can finish within 3 hours. Look forward to working with you. Thank you for your attention to my proposal. Best regards.

$15 USD in 1 day
(8 Reviews)

I am a Php developer.I also expert in wordpress.I have been worked during 11 yrs in Jquery/Javascript and core php also.I have been worked on that field during 11 years of experience with that filed. I am able to fi More

$20 USD in 0 days
(1 Review)