• Resolved Neo1337

    (@eminecraft)


    Hello,

    How can I access chart data from the database? I want to use it on a different chart plugin, but I didn’t find any information about how you store it.

    var myCREDStats = {"globals":[],"charts":{"mycred-chart0":{"type":"line","data":{"datasets":[{"fill":false,<strong>"data":[0,0,0,0,0,0,0,100,0,0]</strong>,"labels":["2022-09-08","2022-09-09","2022-09-10","2022-09-11","2022-09-12","2022-09-13","2022-09-14","2022-09-15","2022-09-16"

    I need a daily user history balance, like you do with “[mycred_chart_balance_history]” shortcode.

    Thanks!

Viewing 1 replies (of 1 total)
  • A.Tariq

    (@arsalantariq)

    Hi @eminecraft,

    Thank you for contacting us, As fas as myCred chart data is concerned, you can use the mycred_chart_generate_canvas filter to get all chart data. We have stored chart-related user data in the user_meta table. We have made use of the chart.js library to generate charts.

Viewing 1 replies (of 1 total)
  • The topic ‘Chart data?’ is closed to new replies.