使工具提示在 amCharts 散点图中不重叠

时间:2021-03-23 06:41:35

标签: javascript amcharts amcharts4

我想将工具提示安排为不重叠并且始终在 amcharts4 散点图上可见。

文档参考

[assembly: Dependency(typeof(FileAccessInterfaceImplementation))]
namespace XamarinPicker.UWP
{
    public class FileAccessInterfaceImplementation : FileAccessInterface
    {
        public async Task<string> GetFileText(string filePath)
        {
            var stringContent = "";
            try
            {
                var file = await StorageFile.GetFileFromPathAsync(filePath);
               
                if (file != null)
                {
                    stringContent = await Windows.Storage.FileIO.ReadTextAsync(file,Windows.Storage.Streams.UnicodeEncoding.Utf8);
                }
            }
            catch (Exception ex)
            {

                Debug.WriteLine(ex.Message);
            }

            return stringContent;
        }
    }
}

显示 tooltipText 放置在系列上的示例实现没有提供所需的效果:

var text = await DependencyService.Get<FileAccessInterface>().GetFileText(@"C:\Users\xxxx\Desktop\test.txt");

需要的结果是这样的:

https://www.amcharts.com/docs/v4/concepts/tooltips/#Making_cursor_arrange_tooltips

0 个答案:

没有答案
相关问题