newrelic / nr1-community

An open-source library of useful components for building on New Relic One's programmability platform.
https://developer.newrelic.com
Apache License 2.0
11 stars 12 forks source link

feat(FunnelChart): Add nr1-funnel-component to community library #16

Open tangollama opened 4 years ago

tangollama commented 4 years ago

https://github.com/newrelic/nr1-funnel-component

devfreddy commented 4 years ago

Initially added here - 19b7df8b04e9516428dd1b559115ae6f524124e7

Needs redesigned and defined a bit.

devfreddy commented 4 years ago

Current Form:

<Funnel
  accountId
  launcherUrlState
  height={575}
  width={200}
  funnel={ { event, measure }}
  steps={[{ label: '', nrqlWhere: '' }]}
  series={[ { label: '', nrqlWhere: '' }]}
  ></Funnel>

Proposed Changes:

<Funnel
  accountId={accountId}
  query={nrql}
  timeRange={{ begin_time, duration, end_time }}
  height={575}
  width={200}
  funnel={ { eventType, attribute }}
  steps={[{ label: '', nrqlWhere: '' }]}
  series={[ { label: '', nrqlWhere: '' }]}
>
</Funnel>