This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void Timer1_Tick(object sender, EventArgs e) | |
{ | |
// Stop the Timer component after the first interval - 100 Milliseconds. | |
Timer1.Stop(); | |
// Then Generate the charts with the method we created. | |
GenerateCharts(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick | |
' Stop the Timer component after the first interval - 100 Milliseconds. | |
Timer1.Stop() | |
' Then Generate the charts with the method we created. | |
GenerateCharts() | |
End Sub |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void GenerateCharts() | |
{ | |
// Let's begin by generating a chart that consists of an Area chart and a Line chart. | |
// We need to create one canvas that will host the first two charts inside it, that is, | |
// the Area chart and Line chart. | |
Canvas multi_chart_canvas = new Canvas(); | |
// Create a new datapoints-set for the first chart - Area chart. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub GenerateCharts() | |
' Let's begin by generating a chart that consists of an Area chart and a Line chart. | |
' We need to create one canvas that will host the first two charts inside it, that is, | |
' the Area chart and Line chart. | |
Dim multi_chart_canvas As New Canvas | |
' Create a new datapoints-set for the first chart - Area chart. | |
Dim area_chart_datapoints As New DataPoint(BunifuDataViz._type.Bunifu_area) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void Dashboard_Load(object sender, EventArgs e) | |
{ | |
// Add the TaskItems inside the panel control. | |
AddTasks(); | |
// Let's now add a colorset for beautifying our charts. | |
BunifuDataViz1.colorSet.Add(Color.FromArgb(114, 203, 66)); | |
BunifuDataViz1.colorSet.Add(Color.FromArgb(110, 89, 237)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub Dashboard_Load(sender As Object, e As EventArgs) Handles Me.Load | |
' Add the TaskItems inside the panel control. | |
AddTasks() | |
' Let's now add a colorset for beautifying our charts. | |
BunifuDataViz1.colorSet.Add(Color.FromArgb(114, 203, 66)) | |
BunifuDataViz1.colorSet.Add(Color.FromArgb(110, 89, 237)) | |
End Sub |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void GenerateLineCharts() | |
{ | |
// Create a new canvas for rendering our chart. | |
Canvas line_chart_canvas = new Canvas(); | |
// Create the first spline chart datapoints-set. | |
DataPoint line1_datapoints = new DataPoint(BunifuDataViz._type.Bunifu_line); | |
// Add all the datapoints for the first spline chart. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub GenerateLineCharts() | |
' Create a new canvas for rendering our chart. | |
Dim line_chart_canvas As New Canvas | |
' Create the first spline chart datapoints-set. | |
Dim line1_datapoints As New DataPoint(BunifuDataViz._type.Bunifu_line) | |
' Add all the datapoints for the first spline chart. | |
line1_datapoints.addLabely("1 Jul", "2800") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This adds a new TaskItem inside our task-list panel section. | |
public void AddTask(TaskItem.TaskLabels task_label, bool show_separator, string task_subject, string task_title, string task_subtitle) | |
{ | |
// Create a new TaskItem and set the required parameters with the "Add" method. | |
TaskItem task_item = new TaskItem(); | |
task_item.Add(task_label, show_separator, task_subject, task_title, task_subtitle); | |
// Then set the TaskItem's Dock property to "Top". | |
task_item.Dock = DockStyle.Top; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' This adds a new TaskItem inside our task-list panel section. | |
Sub AddTask(ByVal task_label As TaskItem.TaskLabels, ByVal show_separator As Boolean, ByVal task_subject As String, ByVal task_title As String, ByVal task_subtitle As String) | |
' Create a new TaskItem and set the required parameters with the "Add" method. | |
Dim task_item As New TaskItem | |
task_item.Add(task_label, show_separator, task_subject, task_title, task_subtitle) | |
' Then set the TaskItem's Dock property to "Top". | |
task_item.Dock = DockStyle.Top |