I am trying to save my plotly.Net chart to a jpg but when I try to do that there is no error but the code keeps running forever when it comes to the line maps.SaveJpg(path).
Can any please help thanks?
using Plotly.NET;
using Plotly.NET.ImageExport;
namespace Reports
{
public class picture
{
public static void map()
{
string[] y = new string[] { "2.0", "1.5", "5.0", "1.5", "3.0", "5.0" };
string[] x = new string[] { "Belarus", "Moldova", "Lithuania", "Russia", "Romania", "India" };
var maps = ChartMap.Chart.ChoroplethMap<string, string>(locations: x, y, LocationMode: StyleParam.LocationFormat.CountryNames);
maps.Show();
string path = @"C:\Users\axx\Documents\Sucess";
maps.SaveJPG(path);
}
public static void Main(string[] args)
{
map();
}
}
}