![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
ember-amcharts
Advanced tools
Use amCharts 4 in Ember in a declarative way.
ember install ember-amcharts
<AmChart
@themes={{array (am-chart-theme "material")}}
@chartType="XYChart"
@initialConfig={{this.jsonConfig}}
as |chart|
>
<chart.property @property="exporting.menu" @value={{am-chart-obj chart.am4core "ExportMenu"}} />
<chart.push @property="yAxes" @value={{am-chart-obj chart.am4charts "CategoryAxis"}} as |axis|>
<axis.property @property="title.text" @value="Stuff" />
<axis.adapter @property="renderer.labels.template" @adapter="text" @func={{this.axisTextFormatter}} />
</chart.push>
{{#if this.triggerExport}}
<chart.call @obj={{this.chart}} @property="exporting.export" @params={{array "png"}} />
{{/if}}
</AmChart>
Creates the amChart.
Properties:
chartType
: Name of chart type class (e.g. PieChart
, XYChart
, …)initialConfig
: Object containing JSON-based config. This is only used during construction or when the chart type changes, but otherwise updates will have no effect.themes
: Optional. List of themesYields hash(once the chart loaded):
instance
: amChart chart instanceam4core
: am4core moduleam4charts
: am4charts moduleproperty
: AmChartProperty
as contextual component (setting obj
)on
: AmChartOn
as contextual component (setting obj
)call
: AmChartCall
as contextual component (setting obj
)push
: AmChartPush
as contextual component (setting obj
)adapter
: AmChartAdapter
as contextual component (setting obj
)Manages property value, e.g.
<AmChartProperty @obj={{this.chart}} @property="responsive.enabled" @value={{true}} />
translates to the following amChart code:
chart.responsive.enabled = true;
When the component is removed from the template it will restore the original state by disposing the given value or setting the original value again.
Properties:
obj
: Container objproperty
: Path to property to setvalue
: Value to setLimitations:
obj
, property
and value
will be correctly applied, only the value at the original combination obj
/ property
is restored upon component destruction.Registers action to an event dispatcher.
<AmChartOn
@obj={{this.series}}
@property="columns.template"
@event="hit"
@action={{fn this.onColumnClick}}
/>
translates to the following amChart code:
series.columns.template.events.on("hit", function(ev) { … })
Properties:
obj
: Container objproperty
: Path to property with event dispatcherevent
: Event nameaction
: Event handleronce
: Optional. Boolean indicating whether to subscribe to on
(default) or to once
.Calls function. Parameter updates will cause the function to be called again.
<AmChartCall
@obj={{this.chart}}
@property="exporting.export"
@params={{array "png"}}
/>
translates to
chart.exporting.export("png");
Parameters:
obj
: Container objfunc
: Path to functionparams
: List of positional parametersYields:
Pushes value into list. Tries to dispose its work upon recomputation with changed obj
/property
params or upon destruction.
Parameters:
obj
: container objproperty
: Path to arrayvalue
: Value to push into arrayYields hash:
value
: Return value of push
(amChart's push
returns the value pushed)property
: AmChartProperty
as contextual component (setting obj
)on
: AmChartOn
as contextual component (setting obj
)call
: AmChartCall
as contextual component (setting obj
)push
: AmChartPush
as contextual component (setting obj
)adapter
: AmChartAdapter
as contextual component (setting obj
)Adds (and removes) adapter functions.
<AmChartAdapter
@obj={{axis}}
@property="renderer.labels.template"
@adapter="text"
@action={{this.axisTextFormatter}}
/>
translates to
axis.renderer.labels.template.adapter.add("text", function(label, target, key) { … })
Parameters:
obj
: container objproperty
: Path to propertyadapter
: adapter name/identifieraction
: Function to modify the valuepriority
: Priority of the adapterscope
: Scope the function will be called inImports (dynamic import) amChart theme for usage in AmChart
component. Takes name of theme as single positional parameter.
Creates new instance of specified class. Takes positional parameters container
, name
. Additional positional parameters are applied to constructor.
To avoid having to bundling every locale a blueprint is provided to aid with dynamic importing of amChart locales:
ember generate am-chart-locale-importer fr_FR de_DE en_US
will generate a helper named am-chart-locale
to be used like this:
<chart.property @property="language.locale" @value={{am-chart-locale "de_DE"}} />>
For a list of all all locales bundled with amCharts check here.
See the Contributing guide for details.
This project is licensed under the MIT License.
FAQs
Use amCharts 4 in Ember in a declarative way.
The npm package ember-amcharts receives a total of 2 weekly downloads. As such, ember-amcharts popularity was classified as not popular.
We found that ember-amcharts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.