Skip to content
Snippets Groups Projects

Feat(vis1 d)/sort histogram

Merged Marcos Pieras requested to merge feat(vis1D)/sortHistogram into main
3 unresolved threads

Solves: https://app.asana.com/0/1206648925655488/1208746061573421 I did not try on customers project. Depends on !326 (merged)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
79 77 y: yValues,
80 78 mode: 'lines',
81 79 line: { color: primaryColor },
82 hoverinfo: 'none',
83 80 },
84 81 ];
85 82 case 'histogram':
83 // !TODO: Apply for other data types?
84 if (typeof xAxisData[0] === 'string') {
  • 102 marker: { color: primaryColor },
    103 },
    104 ];
    105 } else {
    86 106 return [
    87 107 {
    88 108 type: 'histogram',
    89 109 x: xAxisData,
    90 110 marker: { color: primaryColor },
    91 hoverinfo: 'none',
    111 },
    112 ];
    113 }
    114 console.log('xAxisData', xAxisData);
    115 const sortedData = [...xAxisData].sort((a, b) => (b as number) - (a as number));
    116 console.log('sortedData', sortedData);
  • Milho001
  • 231 bgcolor: 'rgba(255, 255, 255, 0.8)', // Custom background color
    232 bordercolor: 'rgba(0, 0, 0, 0.2)', // Custom border color
    233 font: {
    234 family: 'Inter, sans-serif',
    235 size: 14, // Font size
    236 color: '#374151', // Text color
    237 },
    238 },
    198 239 }}
    199 240 onHover={handleHover}
    200 onUnhover={() => setHoveredPoint(null)}
    241 onUnhover={handleUnhover}
    201 242 />
    202
    243 {/*
    203 244 {hoveredPoint && (
  • Milho001 requested changes

    requested changes

  • Marcos Pieras added 1 commit

    added 1 commit

    Compare with previous version

  • Marcos Pieras added 3 commits

    added 3 commits

    Compare with previous version

  • Marcos Pieras added 6 commits

    added 6 commits

    Compare with previous version

  • :tada: This MR is included in version 1.115.2 :tada:

    The release is available on GitLab release.

    Your semantic-release bot :package: :rocket:

  • Please register or sign in to reply
    Loading