Tooltip info incorrect

TScreenshot (204).png


3 Replies

GV Gopalakrishnan Veeraraghavan Syncfusion Team May 19, 2023 10:16 AM UTC

Hi Jose,


We assume that the “Kilometraje” point has provided an incorrect value for the tooltip, and we do not have sufficient information about the query. Would you please provide a code snippet or sample, along with information about the version being used.


We will be able to analyze this additional information much more effectively and quickly, giving you a solution.


Regards,

Gopalakrishnan Veeraraghavan



JO jose May 19, 2023 02:54 PM UTC

<SfChart @ref="_chartInstance">

                            <ChartEvents OnExportComplete="ExportCompleteEvent"></ChartEvents>

                            <ChartPrimaryXAxis ValueType="ValueType.DateTime" EdgeLabelPlacement="EdgeLabelPlacement.Shift" LabelFormat="d/M/y HH:mm">

                                <ChartAxisMajorGridLines Width="0"></ChartAxisMajorGridLines>

                                <ChartAxisMajorTickLines Width="0"></ChartAxisMajorTickLines>

                                <ChartAxisLabelStyle Size="11px"></ChartAxisLabelStyle>

                            </ChartPrimaryXAxis>

                            <ChartPrimaryYAxis LabelFormat="{value} L" Minimum="0">

                                <ChartAxisLineStyle Width="0"></ChartAxisLineStyle>

                                <ChartAxisMajorTickLines Width="0"></ChartAxisMajorTickLines>

                                <ChartAxisLabelStyle Size="11px"></ChartAxisLabelStyle>

                                <ChartAxisTitleStyle Size="13px"></ChartAxisTitleStyle>

                            </ChartPrimaryYAxis>

                            <ChartAxes>

                                <ChartAxis Name="Kilometraje" OpposedPosition="true"/>

                                <ChartAxis Name="Velocidad" OpposedPosition="true" PlotOffsetTop="300"/>

                            </ChartAxes>

                            <ChartZoomSettings EnableMouseWheelZooming="true" EnableScrollbar="true" EnablePinchZooming="true" Mode="ZoomMode.X" EnableSelectionZooming="true"></ChartZoomSettings>

                            <ChartTooltipSettings Enable="true" Shared="true" EnableMarker="false" Header="${point.x}" Format="<b>${series.name} : ${point.y}</b>"></ChartTooltipSettings>

                            <ChartCrosshairSettings Enable="true" LineType="LineType.Vertical"></ChartCrosshairSettings>

                            <ChartSeriesCollection>

                                <ChartSeries DataSource="@_fuel.Points" XName="@nameof(PointTimeValue.Time)" YName="@nameof(PointTimeValue.Value)" Type="ChartSeriesType.Area" Fill="@fillFuel" Opacity="0.5" Name="Combustible">

                                    <ChartSeriesBorder Width="0.5" Color="@borderFuel"></ChartSeriesBorder>

                                    <ChartMarker Visible="true" Height="5" Width="3" Fill="@borderFuel">

                                        <ChartMarkerBorder Width="1" Color="white"></ChartMarkerBorder>

                                    </ChartMarker>

                                </ChartSeries>

                                <ChartSeries DataSource="@_mileage.Points" XName="@nameof(PointTimeValue.Time)" YName="@nameof(PointTimeValue.Value)" Type="ChartSeriesType.Line" Fill="@mileageColor" YAxisName="Kilometraje" Name="Kilometraje">

                                </ChartSeries>

                                <ChartSeries DataSource="@_speed.Points" XName="@nameof(PointTimeValue.Time)" YName="@nameof(PointTimeValue.Value)" Type="ChartSeriesType.Line" Fill="@speedColor" YAxisName="Velocidad" Name="Velocidad">

                                </ChartSeries>

                            </ChartSeriesCollection>

                        </SfChart>


protected override void OnInitialized()

    {

        if (!Report.HasData) return;

        _fuelReports.AddRange(Report.FuelSheetData.Where(s => s.Type == SensorDataType.Fuel));

        var dates = Report.FuelSheetData.FirstOrDefault(s => s.Type == SensorDataType.Fuel)?.Points.Select(p => p.Time);

        _fuelTotal = new TimeSeries()

        {

            Name = Report.Name,

            Points = dates.Select(date => new PointTimeValue()

            {

                Time = date, Value = Report.FuelParser.FuelLevelAtTime(date)

            }).ToList()

        };

        _fuelReports.Add(_fuelTotal);

        _fuel = _fuelTotal;

        _speed = Report.FuelSheetData.FirstOrDefault(s => s.Type == SensorDataType.Speed);

        _mileage = Report.FuelSheetData.FirstOrDefault(s => s.Type == SensorDataType.Mileage);

        _totals = new ExcelReportHelper(Report).GetUnique();

        GetAccumData();

    }



version 2.



GV Gopalakrishnan Veeraraghavan Syncfusion Team May 22, 2023 03:28 PM UTC

Hi Jose,


We have analyzed your sample. We have tried to replicate the tooltip info issue on our end, but we could not reproduce it. However, we suggest waiting for our next upcoming release, as the issue might be resolved then. There is a possibility that you may still encounter the issue. In that case, we will schedule a meeting to discuss it further. We have attached a sample and screenshot for your reference. Please check with the below sample.


Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/TooltipInfo1344521702.zip


Screenshot:

A picture containing text, screenshot, line, plot

Description automatically generated




Kindly revert us if you have any concerns.



Regards,

Gopalakrishnan Veeraraghavan


Loader.
Up arrow icon