
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
Externs of Chart.js for Haxe - Simple, clean and engaging charts for designers and developers


Externs of Chart.js for Haxe - Simple, clean and engaging charts for designers and developers
haxelib install chartjs
Look at the samples folder for the source code of above example.
import chart.defaults.Global;
import chart.Chart;
import js.html.CanvasRenderingContext2D;
import js.html.CanvasElement;
import js.Browser;
class Main {
var data = {
labels: ["January", "February", "March", "April", "May", "June", "July"],
datasets: [
{
label: "My First dataset",
fillColor: "rgba(220,220,220,0.5)",
strokeColor: "rgba(220,220,220,0.8)",
highlightFill: "rgba(220,220,220,0.75)",
highlightStroke: "rgba(220,220,220,1)",
data: [65, 59, 80, 81, 56, 55, 40]
},
{
label: "My Second dataset",
fillColor: "rgba(151,187,205,0.5)",
strokeColor: "rgba(151,187,205,0.8)",
highlightFill: "rgba(151,187,205,0.75)",
highlightStroke: "rgba(151,187,205,1)",
data: [28, 48, 40, 19, 86, 27, 90]
}
]
};
public function new() {
var canvas:CanvasElement = Browser.document.createCanvasElement();
Browser.document.body.appendChild(canvas);
Global.responsive = true;
var ctx:CanvasRenderingContext2D = canvas.getContext("2d");
var barChart = new Chart(ctx).Bar(data);
}
static function main() {
new Main();
}
}
This content is released under the MIT License.
Chart.js is written by Nick Downie and licensed under the MIT License.
FAQs
Externs of Chart.js for Haxe - Simple, clean and engaging charts for designers and developers
We found that chartjs-hx 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
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.