微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决使工具提示在 amCharts 散点图中不重叠

我想将工具提示安排为不重叠并且始终在 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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。