diff --git a/LC_Tutorial/Tutorial/BasicPlots/StackedColumnsWindow.xaml b/LC_Tutorial/Tutorial/BasicPlots/StackedColumnsWindow.xaml
new file mode 100644
index 0000000..9a54c74
--- /dev/null
+++ b/LC_Tutorial/Tutorial/BasicPlots/StackedColumnsWindow.xaml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/LC_Tutorial/Tutorial/BasicPlots/StackedColumnsWindow.xaml.cs b/LC_Tutorial/Tutorial/BasicPlots/StackedColumnsWindow.xaml.cs
new file mode 100644
index 0000000..fa41434
--- /dev/null
+++ b/LC_Tutorial/Tutorial/BasicPlots/StackedColumnsWindow.xaml.cs
@@ -0,0 +1,77 @@
+using LiveCharts;
+using LiveCharts.Wpf;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace Tutorial.BasicPlots
+{
+ ///
+ /// StackedColumnsWindow.xaml에 대한 상호 작용 논리
+ ///
+ public partial class StackedColumnsWindow : Window
+ {
+ private int _index;
+
+ public SeriesCollection SeriesCollection { get; set; }
+ public string[] Labels { get; set; }
+ public Func Formatter { get; set; }
+
+ public StackedColumnsWindow()
+ {
+ InitializeComponent();
+ InitInstance();
+ }
+
+ private void InitInstance()
+ {
+ SeriesCollection = new SeriesCollection()
+ {
+ new StackedColumnSeries()
+ {
+ Title = $"index{++_index}",
+ Values = new ChartValues { 4, 5, 6, 8 },
+ StackMode = StackMode.Values,
+ DataLabels = true
+ },
+ new StackedColumnSeries()
+ {
+ Title = $"index{++_index}",
+ Values = new ChartValues { 2, 5, 6, 7 },
+ StackMode = StackMode.Values,
+ DataLabels = true
+ }
+ };
+
+ Labels = new string[] { "Chrome", "FireFox", "Opera", "Edge" };
+ Formatter = value => value + " Mill";
+
+ DataContext = this;
+ }
+
+ private void btnAdd_Click(object sender, RoutedEventArgs e)
+ {
+ Random rand = new Random();
+
+ SeriesCollection.Add(new StackedColumnSeries()
+ {
+ Title = $"index{++_index}",
+ Values = new ChartValues { (double)rand.Next(0, 10), (double)rand.Next(0, 10), (double)rand.Next(0, 10), },
+ StackMode = StackMode.Values,
+ DataLabels = true
+ });
+
+ SeriesCollection[SeriesCollection.Count - 2].Values.Add((double)rand.Next(0, 10));
+ }
+ }
+}
diff --git a/LC_Tutorial/Tutorial/MainWindow.xaml b/LC_Tutorial/Tutorial/MainWindow.xaml
index e204f5f..2c04b00 100644
--- a/LC_Tutorial/Tutorial/MainWindow.xaml
+++ b/LC_Tutorial/Tutorial/MainWindow.xaml
@@ -14,6 +14,7 @@
+
diff --git a/LC_Tutorial/Tutorial/MainWindow.xaml.cs b/LC_Tutorial/Tutorial/MainWindow.xaml.cs
index 6be3224..5b914ff 100644
--- a/LC_Tutorial/Tutorial/MainWindow.xaml.cs
+++ b/LC_Tutorial/Tutorial/MainWindow.xaml.cs
@@ -37,5 +37,11 @@ namespace Tutorial
ColumnsWindow win = new ColumnsWindow();
win.Show();
}
+
+ private void btnStackedColumns_Click(object sender, RoutedEventArgs e)
+ {
+ StackedColumnsWindow win = new StackedColumnsWindow();
+ win.Show();
+ }
}
}