…Using the -y flag means that the project gets initialised with the default values in place, so the application will start with index.js. Before creating and parsing CSV files, we need to do some initial setup first. We want to make this a web application; to do that, you are…
…using Chart.js. People who have read that tutorial will probably remember that you have to set the type attribute to line to create a line chart in Chart.js.With Plotly.js, you cannot set the type attribute to line to create a line chart. You will have to set the type attribute…
…using a declarative approach where you can control the state of the application by saying "the view should look like this". It uses a component-based model where the components are reusable UI elements, and each component has its own state. React uses a Virtual DOM so that you don't have…
…using a set of attributes. Plotly.js allows you to create bar charts in a similar manner. In this tutorial, you will learn how to create different kinds of bar charts using Plotly.js. I will also discuss how to control the appearance of these charts, like the bar color and width,…
…using the library. Each of these chart types has its own set of customization options as well as attributes that are common to multiple charts.In this tutorial, you will learn how to create bubble and dot plot charts in Plotly.js. Both these chart types use the same scatter traces that…
…using the same value for the type attribute and changing the value of other attributes depending on the chart you want to create.Creating Pie Charts in Plotly.jsYou can create pie charts in Plotly.js by setting the type attribute to pie. There are also other attributes like opacity, visible and name…
…using Node. Because of Node, you can use JavaScript to build full web applications like Twitter or games like Agar.io. This is the first lesson in a four-part series where I will teach you the programming fundamentals you will need so you can learn to build your own apps. In…
…using boolean expressions. A boolean expression is written using relational operators. Logical operators allow us to combine boolean expressions. A single if statement gives the program one alternative path to take if a condition is met. If-else statements provide a second course of action if the condition is false. And…
…using arrow syntax. Here is our greet function defined using arrow syntax:let greet = () => console.log("Hello, World");A function with one parameter:let greet = name => console.log("Hello, " + name);A function with more than one parameter:let greet = (fname, lname) => console.log("Hello, " + fname + " " + name);…
…using express-session. This middleware is important as you will be displaying flash messages in some parts of your application. app.use( session({ secret: "secret", saveUninitialized: true, resave: true, }) ); Set up middleware for validation. This middleware will be used to validate form input, ensuring that users of the application do…