![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.
angular-abc
Advanced tools
Customisable SVG charts with live data & settings, completely bound to AngularJS with no other dependencies
This release is compatible with all modern browsers [Chrome, Firefox, Safari, IE, Opera]
This is a reasonably new project (with only myself working on it currently), but I plan on keeping it updated, improving performance & will be adding tests & extensive documentation shortly.
Feel free to fork or give suggestions for features. Constructive criticism is welcome.
These instructions apply to an application setup using Yeoman but can easily be adjusted to your needs.
First you'll have to add ABC to your bower.json
, I'd suggest pinning a specific version using =
.
The version at the time of writing this is 0.3.0
.
"dependencies": {
...
"angular-abc": "=0.3.0"
...
}
You'll need to reference the main ABC javascript file in your index.html
like so:
<script src="bower_components/angular-abc/scripts/abc.js"></script>
This will also need referencing in your main javascript file (e.g. app.js
)
angular.module('myApp', [
...
'angularAbc'
...
])
Now we have to adjust our gruntfile.js
to copy the views (e.g. abc.html
) to a location where they can be loaded after your application has been built & deployed. In my application it looks something like this:
copy: {
abc: {
files: [{
expand: true,
cwd: '<%= yeoman.app %>/bower_components/angular-abc/views/',
dest: '<%= yeoman.dist %>/bower_components/angular-abc/views/',
src: '*.html',
flatten: true
}]
}
}
I then call copy:abc
in my build task just after copy:dist
grunt.registerTask('build', [
...
'copy:dist',
'copy:abc',
...
]);
If you plan on running any tests using karma you'll have to include ABC in your karma.conf.js
file
files: [
...
'bower_components/angular-abc/scripts/abc.js',
...
],
Prepare your data to use with ABC. I'd recommend using the ABC service to transform your data.
app.controller('MainCtrl', ['$scope', 'ABC', function ($scope, ABC) {
...
$scope.myChart = {
data: ABC.transformData($scope.data),
headers: ABC.transformHeaders($scope.data)
}
...
});
Add the ABC element with a data attribute linking to your transformed data / ABC settings.
<abc data="myChart"></abc>
Tune the settings to your liking. The following settings are all optional.
$scope.myChart = {
// Classes for styling
class: 'abc-chart',
focusClass: 'abc-focus',
nofocusClass 'abc-nofocus',
// These hovering indices are used to focus on data from outside ABC
hovering: {
x: -1,
y: -1
},
// Size settings
width: 800,
height: 200,
resize: {
width: true,
height: false
},
// Element styling
margin: 12,
lineWidth: 2,
axisLineWidth: 1,
axisTickWidth: 1,
axisTickSize: 4,
pointSize: 2.5,
pointHoverSize: 4,
// Axis options
xAxisLabelOffset: 0.5, // Offset by 0.5 ticks
xAxisLabelCulling: true, // Automatically hides some axis labels when needed
// Chart colors
colors: ['#d24949', '#e59648', '#4f8f47', '#316e93', '#684c8a'],
// Regions
regions: [
{
start: 0,
end: 1,
color: 'red',
title: 'Region 1',
size: 12,
titleY: 'top', // 'top', 'center', 'bottom', or number e.g. 0.5 (half) or 0.75 (3 quarters)
opacity: 0.2 // Set highlight opacity of region, defaults to 0.2
}
],
// Bands
bands: [
{
start: 0, // Start & end can be exact values
end: 'bottom', // Start & End can be 'top' or 'bottom'
color: 'red',
title: 'Lower band',
size: 10
}
],
// Text transforms
transforms: {
yLabels: function,
xLabels: function,
popupLabels: function,
popupValues: function,
popupHeaders: function
}
// Title settings
title: {
content: 'My Chart',
size: 12,
margin: 4,
align: 'center' // center, left or right
},
// Transformed data & headers
data: ABC.transformData($scope.data),
headers: ABC.transformHeaders($scope.data)
}
FAQs
DEPRECATED: This library is no longer maintained
The npm package angular-abc receives a total of 3 weekly downloads. As such, angular-abc popularity was classified as not popular.
We found that angular-abc 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.