S
S
SteepNET2020-03-05 22:16:06
JavaScript
SteepNET, 2020-03-05 22:16:06

CJSCore::Init(['amcharts']); Bitrix?

Good afternoon! I would like to use charts and graphs in Bitrix!
https://dev.1c-bitrix.ru/api_help/js_lib/js-library.php
It says that the kit already comes with a built-in amcharts license!
Also, apart from hooking it up CJSCore::Init(['amcharts']); Nothing else listed or found anywhere.
Maybe someone who used it can give advice, an example of how to use it in the Bitrix environment?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Savrasov, 2020-03-06
@alcorn

Code examples can be found here https://www.amcharts.com/demos/
amcharts - Core library
amcharts_funnel - Maslow's pyramid funnel
amcharts_gauge - Speedometer chart amcharts_pie - Pie
chart
amcharts_radar - Radar chart
amcharts_serial - Regular charts
amcharts_xy - XY chart

D
DRusak, 2022-01-19
@DRusak

\Bitrix\Main\UI\Extension::load('amcharts4');
\Bitrix\Main\UI\Extension::load('amcharts4_theme_animated');

am4core.ready(function() {
            am4core.useTheme(am4themes_animated);
            var chart = am4core.create("chart1", am4charts.PieChart);
            chart.data = newData;
            ......
            ......
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question