Skip to content

Trackball and crosshair is not visible in Sfcartision from latest version 27.x.52 #2125

Closed
@upendra-bajpai

Description

@upendra-bajpai

Bug description

I had implemented trackball with version 24.x.x but recently I updated to latest version.
Now I can't see trackball or crosshair although I can see label on x axis hilighted while traversing.
Restoring to previous version I can see them again.
Is there anything which I need to update or it's a bug?

Ps.Thank you for this library

Steps to reproduce

Just update to 27.x.x for charts and impliment trackball in Sfcartision charts. Both Android and iOS can't show the trackball.

    _trackballBehavior = TrackballBehavior(
      enable: true,
      activationMode: ActivationMode.singleTap,
      lineType: TrackballLineType.vertical,
      lineColor: Colors.blue,
      markerSettings: TrackballMarkerSettings(
          color: Colors.white,
          borderColor: Colors.blue,
          borderWidth: 9,
          width: 5,
          height: 5,
          shape: DataMarkerType.circle,
          markerVisibility: TrackballVisibilityMode.visible),
      lineDashArray: [5, 5],
      builder: (BuildContext context, TrackballDetails trackballDetails) {
        final ChartData point = widget.data[trackballDetails.pointIndex!];
        // widget.onDataPointSelected.call(point);
        return Container(
          decoration: BoxDecoration(
            color: Colors.black.withOpacity(0.4),
            borderRadius: BorderRadius.circular(4),
          ),
          child: SectionSum(
              sum: (point.y! * 100).toInt(),
              textStyle: TextStyle(
                color: Colors.white,
                backgroundColor: Colors.black.withOpacity(0.4),
                fontFamily: GoogleFonts.poppins().fontFamily,
                fontSize: 12,
                fontWeight: FontWeight.w700,
              )),
        );
      },
    );

Screenshots or Video

Screenshots / Video demonstration

I can update if needed

Stack Traces

Stack Traces
No crashes available 

On which target platforms have you observed this bug?

iOS

Flutter Doctor output

Doctor output

Metadata

Metadata

Assignees

No one assigned

    Labels

    chartsCharts componentwaiting for customer responseCannot make further progress until the customer responds.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions